siotp/sio2/SISR/08-lldap/local.protected.php
root e20efad442 nouveau fichier : configure_ldap
nouveau fichier : local.protected.php
2024-10-10 09:22:09 +02:00

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+';