3

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


Dokuwiki 版本是 2014-05-05 “思考 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。

两者都安装成功。我遵循了入门指南中的默认安装,并添加了示例配置示例 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.

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

4

2 回答 2

4

您的 PHP 没有安装或启用 LDAP 扩展。AD 身份验证需要它。您的发行版可能有一个单独的软件包。例如。php5-ldap 什么的。

于 2014-06-26T07:27:40.343 回答
0

如果你碰巧使用 Ubuntu 16.04,你可以扩展你的 apache 实例:

sudo apt install php7.0-ldap

并启用 ldap apache 模块

sudo a2enmod authnz_ldap

祝你好运!

于 2016-07-19T07:46:02.343 回答