每当我尝试使用我的LDAP凭据登录dokuwiki时,我都会收到以下错误消息:
但是,当我尝试使用Internet Explorer而不是使用Chrome登录时,我已成功登录,但从未再次登录过。
请有人帮我配置dokuwiki,使用AuthLDAP插件对使用LDAP凭据的用户进行身份验证。
请参阅 conf / local.php 文件的内容:
$conf['title'] = 'SomeNameOfDokuWiki';
$conf['license'] = '0';
$conf['useacl'] = 1;
$conf['authtype'] = 'authldap';
$conf['passcrypt'] = 'md5';
$conf['superuser'] = 'xander';
$conf['disableactions'] = 'register';
$conf['proxy']['user'] = 'SomeUserName';
$conf['proxy']['pass'] = 'SomeEncryptedPassword';
$conf['plugin']['authldap']['server'] = 'ldap://some.local.ip.address.129:389';
$conf['plugin']['authldap']['usertree'] = 'ou=Users,dc=example,dc=max,dc=net';
$conf['plugin']['authldap']['grouptree'] = 'ou=Groups,dc=xander,dc=max,dc=net';
$conf['plugin']['authldap']['userfilter'] = '(&(cn=%{user})(objectClass=inetOrgPerson))';
$conf['plugin']['authldap']['groupfilter'] = '(&(objectClass=posixGroup)(|(gidNumber=%{gid})(memberUID=%{user})))';
$conf['plugin']['authldap']['version'] = 3;
$conf['plugin']['authldap']['bindpw'] = 'SomeBindPassword';
$conf['plugin']['authldap']['userkey'] = 'cn';
$conf['plugin']['authldap']['debug'] = 1;
$conf['plugin']['authldap']['modPass'] = 0;
我确定以下查询是正确的(我通过phpldapadmin检查了它们):
(&(cn=%{user})(objectClass=inetOrgPerson))
(&(objectClass=posixGroup)(|(gidNumber=%{gid})(memberUID=%{user})))
感谢。
答案 0 :(得分:0)
我想也许你错过了这个。
$conf['plugin']['authldap']['binddn'] = 'CN=ad user with enough rights to see other accounts,CN=Users,DC=yourdomain,DC=com';