dsigh7478 2016-03-02 20:27
浏览 240

如何为Dokuwiki配置Auth LDAP插件

Every time I'm trying to login into dokuwiki with my LDAP credentials I'm getting the error below: enter image description here

However once when I tried to log in with Internet Explorer rather than with Chrome I logged in successfully, but that never happened again.

Would someone please help me with configuring dokuwiki to authenticate users with LDAP credentials using AuthLDAP plugin.

Please see the content of conf/local.php file:

$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;

I'm sure that following queries are correct (I checked them through phpldapadmin):

(&(cn=%{user})(objectClass=inetOrgPerson))
(&(objectClass=posixGroup)(|(gidNumber=%{gid})(memberUID=%{user})))

Thanks.

  • 写回答

1条回答 默认 最新

  • duankuixi1930 2017-07-19 18:17
    关注

    I think perhaps you are missing this.

    $conf['plugin']['authldap']['binddn'] = 'CN=ad user with enough rights to see other accounts,CN=Users,DC=yourdomain,DC=com';
    
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大