Dokuwiki与LDAP错误:用户身份验证暂时不可用

时间:2014-06-20 08:11:23

标签: php ldap dokuwiki

我正在尝试使用本地计算机中的LDAP设置Dokuwiki。


Dokuwiki版本是2014-05-05“Ponder Stibbons”

身份验证设置

authtype: authldap

插件Authldap(捆绑插件)设置

plugin»authldap»server: localhost
plugin»authldap»port: 10389
plugin»authldap»usertree: ou=People,o=sevenSeas
plugin»authldap»grouptree: ou=Groups,o=sevenSeas
plugin»authldap»userfilter:
plugin»authldap»groupfilter:
plugin»authldap»version: 3
plugin»authldap»binddn: uid=admin,ou=system
plugin»authldap»bindpw: secret

Local.php内容

<?php
/*
 * Dokuwiki's Main Configuration File - Local Settings
 * Auto-generated by config plugin
 * Run for user: 
 * Date: Fri, 20 Jun 2014 10:04:50 +0200
 */

$conf['title'] = 'Sample Wiki';
$conf['license'] = 'cc-by-sa';
$conf['useacl'] = 1;
$conf['authtype'] = 'authldap';
$conf['superuser'] = '@admin,jhallett';
$conf['disableactions'] = 'register,resendpwd,profile';
$conf['proxy']['user'] = 'admin';
$conf['proxy']['pass'] = '<b>OU9sLi8nXVw=';
$conf['plugin']['authldap']['server'] = 'localhost';
$conf['plugin']['authldap']['port'] = 10389;
$conf['plugin']['authldap']['usertree'] = 'ou=People,o=sevenSeas';
$conf['plugin']['authldap']['grouptree'] = 'ou=Groups,o=sevenSeas';
$conf['plugin']['authldap']['version'] = 3;
$conf['plugin']['authldap']['binddn'] = 'uid=admin,ou=system';
$conf['plugin']['authldap']['bindpw'] = 'secret';
$conf['openregister'] = '0';

// end auto-generated content

LDAP正在使用在Java 1.7.0_51上运行的Apache DS 2.0.0和Apache Directory Studio 2.0.0。

两者都安装成功。我已遵循Getting Started Guide的默认安装,并添加了sample configurationsample LDIF

我正在使用“入门指南”中的默认配置:

Default Port: 10389
Default Bind DN: uid=admin,ou=system
Default Bind Password: secret

当我保存dokuwiki配置时,我收到以下错误:

User authentication is temporarily unavailable. 
If this situation persists, please inform your Wiki Admin.

我该怎么做才能解决这个问题?

2 个答案:

答案 0 :(得分:4)

您的PHP没有安装或启用LDAP扩展。这是AD身份验证所必需的。您的发行版可能有一个单独的包。例如。 php5-ldap或其他东西。

答案 1 :(得分:0)

如果您碰巧使用Ubuntu 16.04,可以使用以下命令扩展您的apache实例。

sudo apt install php7.0-ldap

并使用

启用ldap apache模块
sudo a2enmod authnz_ldap
祝你好运!