# LDAP

![](https://1056014440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LH9CCYPqjHw1VKNcuiq-1451305784%2Fuploads%2Fgit-blob-b3781e45c85e9c89e5895d08f3c11db160b75a1d%2Fgraficos14.png?alt=media) Met deze categorie kunt u de synchronisatie met een LDAP-server configureren. Het bevat een lange reeks instellingen die allemaal een goede kennis van LDAP vereisen.

Voor meer informatie nodigen we u uit om LDAP-specifieke documentatie te volgen. Merk op dat een ActiveDirectory-server kan worden gebruikt als een LDAP-server door de LDAP-compatibiliteitsmodus in te schakelen.

De nieuwe LDAP-plug-in moet worden geconfigureerd in app/config/auth.conf.php via de aanpassing van de volgende sectie:

$extldap\_config = array(

//base dommain string

'base\_dn' => 'DC=cblue,DC=be',

//admin distinguished name

'admin\_dn' => 'CN=admin,dc=cblue,dc=be',

//admin password

'admin\_password' => 'pass',

//ldap host

'host' => array('1.2.3.4', '2.3.4.5', '3.4.5.6'),

// filter

// 'filter' => '', // no () arround the string

//'port' => , default on 389

//protocl version (2 or 3)

'protocol\_version' => 3,

// set this to 0 to connect to AD server

'referrals' => 0,

//String used to search the user in ldap. %username will ber replaced by the username.

//See extldap\_get\_user\_search\_string() function below

// 'user\_search' => 'sAMAccountName=%username%', // no () arround the string

'user\_search' => 'uid=%username%', // no () arround the string

//encoding used in ldap (most common are UTF-8 and ISO-8859-1

'encoding' => 'UTF-8',

//Set to true if user info have to be update at each login

'update\_userinfo' => true

);
