Différences
Ci-dessous, les différences entre deux révisions de la page.
| |
— | netherver:dokuwiki [2024/02/09 17:10] (Version actuelle) – créée - modification externe 127.0.0.1 |
---|
| ====== LDAP sur dokuwiki ====== |
| plugins : authtype authldap |
| |
| local.php contient |
| <code> |
| $conf['authtype'] = 'authldap'; |
| $conf['useacl'] = 1; |
| $conf['plugin'][$conf['authtype']]['server'] = "ldap://127.0.0.1:389"; |
| $conf['plugin'][$conf['authtype']]['version'] = '3'; |
| $conf['plugin'][$conf['authtype']]['usertree'] = "ou=People,dc=directory,dc=nh"; |
| $conf['plugin'][$conf['authtype']]['grouptree'] = "ou=Groups,dc=directory,dc=nh"; |
| $conf['plugin'][$conf['authtype']]['userfilter'] = '(&(uid=%{user})(objectClass=inetOrgPerson))'; |
| $conf['plugin']['authldap']['groupfilter'] = '(|(memberUid=%{user})(gidNumber=%{gid}))'; |
| $conf['plugin'][$conf['authtype']]['groupkey'] = 'cn'; |
| $conf['plugin']['authldap']['binddn'] = "cn=ldapservice,dc=directory,dc=nh"; |
| $conf['plugin']['authldap']['bindpw'] = "blablabla"; |
| $conf['plugin']['authldap']['starttls'] = 1; |
| $conf['plugin']['authldap']['modPass'] = 0; |
| </code> |
| le bindpw est recupéré en installant dokuwiki en module nethserver |
| yum install nethserver-dokuwiki --enablerepo=stephdl |
| la conf est dans /etc/dokuwiki ... |