编程语言
首页 > 编程语言> > php-带有LDAP错误的Dokuwiki:用户身份验证暂时不可用

php-带有LDAP错误的Dokuwiki:用户身份验证暂时不可用

作者:互联网

我正在尝试在本地计算机上使用LDAP设置Dokuwiki.

Dokuwiki版本是2014年5月5日的“ 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.

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

解决方法:

您的PHP没有安装或启用LDAP扩展.它是AD身份验证所必需的.您的发行版可能有单独的软件包.例如. php5-ldap之类的.

标签:ldap,dokuwiki,php
来源: https://codeday.me/bug/20191029/1959898.html