Subversion Repositories oidplus

Rev

Rev 430 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
430 daniel-mar 1
 
2
How to use LDAP / ActiveDirectory login
3
=======================================
4
 
5
(1) In your PHP.ini, make sure that the "LDAP" extension is activated, e.g.:
6
 
7
	extension=php_ldap.dll
8
 
9
(2) On your ActiveDirectory server, please make sure that the "mail" attribute
10
    is set for all users that should be able to log into OIDplus.
11
 
12
(3) In userdata/baseconfig/config.inc.php, please add following lines,
13
    and adjust them to your configuration:
14
 
15
	OIDplus::baseConfig()->setValue('LDAP_ENABLED',              true);
16
	OIDplus::baseConfig()->setValue('LDAP_SERVER',               'ldap://shs.company.local');
17
	OIDplus::baseConfig()->setValue('LDAP_PORT',                 389);
18
	OIDplus::baseConfig()->setValue('LDAP_BASE_DN',              'DC=COMPANY,DC=local');
19
	OIDplus::baseConfig()->setValue('LDAP_CONTROLUSER_RDN',      'test@company.local'); // Can be any user that is able to search for users (in order to find who is owning an email address)
20
	OIDplus::baseConfig()->setValue('LDAP_CONTROLUSER_PASSWORD', 'foobar');
487 daniel-mar 21
	OIDplus::baseConfig()->setValue('LDAP_USER_FILTER',          '(&(objectClass=user)(cn=*))');