【问题标题】:Dokuwiki with LDAP error: User authentication is temporarily unavailableLDAP 错误的 Dokuwiki:用户身份验证暂时不可用
【发布时间】:2014-06-20 08:11:22
【问题描述】:

我正在尝试在我的本地计算机中使用 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.

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

【问题讨论】:

  • 启用 dokuwiki 和 LDAP 插件的调试选项,看看你会得到哪些额外信息
  • 我检查了Basic:allowdebug 选项。我只得到以下信息:05:55:34 ::1: checkUpdateMessages(): messages.txt up to date\DokuWikiStick\dokuwiki\data\cache\debug.log 内。我错过了任何调试配置吗?
  • @AndreasGohr:我通过在地址栏中填充 &do=debug 获得了调试信息。由于文字很大,我无法将其附加在主帖中。我应该检查哪些关键字?
  • 没有。在 DokuWiki 配置中启用 allowdebug 并启用 LDAP 插件的调试选项。调试信息应与错误消息一起打印。
  • 我收到“LDAP 错误:未找到 PHP LDAP 扩展。[auth.php:34]”。它似乎来自 \DokuWikiStick\dokuwiki\lib\plugins\authldap\auth.php

标签: php ldap dokuwiki


【解决方案1】:

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

【讨论】:

  • 我使用的是来自 dokuwiki 下载页面的包含的网络服务器。我用完整的替换了\php,然后更新了用户过滤器和组过滤器,它工作正常。很高兴直接从创作者那里得到答案。非常感谢!
【解决方案2】:

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

sudo apt install php7.0-ldap

并使用

启用 ldap apache 模块
sudo a2enmod authnz_ldap

祝你好运!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-04
    • 1970-01-01
    相关资源
    最近更新 更多