14 lines
894 B
PHP
14 lines
894 B
PHP
<?php
|
|
$conf['useacl'] = 1; //enable ACL
|
|
$conf['authtype'] = 'authldap'; //enable this Auth plugin
|
|
$conf['superuser'] = 'admin';
|
|
$conf['plugin']['authldap']['server'] = 'ldap://192.168.0.26:3890'; #IP of your lldap
|
|
$conf['plugin']['authldap']['usertree'] = 'ou=people,dc=labo1,dc=lan';
|
|
$conf['plugin']['authldap']['grouptree'] = 'ou=groups,dc=labo1,dc=lan';
|
|
$conf['plugin']['authldap']['userfilter'] = '(&(uid=%{user})(objectClass=person))';
|
|
$conf['plugin']['authldap']['groupfilter'] = '(&(member=%{dn})(objectClass=groupOfUniqueNames))';
|
|
$conf['plugin']['authldap']['attributes'] = array('cn', 'displayname', 'mail', 'givenname', 'objectclass', 'sn', 'uid', 'memberof');
|
|
$conf['plugin']['authldap']['version'] = 3;
|
|
$conf['plugin']['authldap']['binddn'] = 'cn=admin,ou=people,dc=labo1,dc=lan';
|
|
$conf['plugin']['authldap']['bindpw'] = 'Azerty1+';
|