Not logged in. · Lost password · Register
Forum: General Discussion Installation and Configuration RSS
Active Directory authentication error [SOLVED]
Poekies #1
Member for 2 weeks · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: Active Directory authentication error [SOLVED]
I've got dokuwiki installed. I'm now trying to enable active directory authentication.

Dokuwiki (latest) is install on Arch Linux, using Apache and PHP.
I've enabled ldap authentication in php.ini and change local.conf to use active directory.
When I go to my wiki, I get the following error:
LDAP err: PHP LDAP extension not found. [ldap.class.php:25]
User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin.

I posted on the Arch forum to see if they have any ideas but nothing so far.

Here is my local.conf
<?php
/*
 * Dokuwiki's Main Configuration File - Local Settings
 * Auto-generated by config plugin
 * Run for user: Poekies
 * Date: Fri, 11 Apr 2008 11:25:06 +1200
 */

$conf['title'] = 'My company';
$conf['useacl'] = 1;
$conf['superuser'] = '@admin';
$conf['disableactions'] = 'register';
$conf['userewrite'] = '2';
$conf['compress'] = 0;

@include(DOKU_CONF.'local.protected.php');

// end auto-generated content

$conf['useacl']      = 1;
$conf['openregister']= 0;
$conf['authtype']    = 'ldap';
$conf['auth']['ldap']['server']           = 'domain.com';
$conf['auth']['ldap']['binddn']           = '%{user}@%{server}';
$conf['auth']['ldap']['usertree']         = 'dc=domain,dc=com';
$conf['auth']['ldap']['userfilter']       = '(userPrincipalName=%{user}@%{server})';
$conf['auth']['ldap']['mapping']['name']  = 'displayname';
$conf['auth']['ldap']['mapping']['grps']  = array('memberof' => '/CN=(.+?),/i');
$conf['auth']['ldap']['grouptree']   = 'dc=domain,dc=com'; # position for find groups, at root here
$conf['auth']['ldap']['groupfilter'] = '(&(cn=*)(Member=%{dn})(objectClass=group))'; # find groups for current user(dn)
$conf['auth']['ldap']['referrals']        = 0; # Switch referrals off for use with Active Directory
$conf['auth']['ldap']['version']          = 3;
$conf['superuser'] = '@WIKI_ADMINS'; #name group AD for dokuwiki administration
$conf['auth']['ldap']['debug']      = true; #set true for watch authenticate activity (eg. list of user groups) on html page
This post was edited on 2008-05-07, 02:14 by Poekies.
Poekies #2
Member for 2 weeks · 5 posts
Group memberships: Members
Show profile · Link to this post
I installed Dokuwiki on a CentOS server and didn't have any problem. Must be an ArchLinux specific thing.
Avatar
andi (Administrator) #3
Member since May 2006 · 654 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #1
Quote by Poekies on 2008-05-05, 06:24:
LDAP err: PHP LDAP extension not found. [ldap.class.php:25]

Seriously, how much more specific can the error message be? The LDAP extension for PHP is either not installed or not enabled.
Read this if you don't get any useful answers.
Poekies #4
Member for 2 weeks · 5 posts
Group memberships: Members
Show profile · Link to this post
It was installed and enabled but it wasn't working. I'm not a Linux guru, but I posted on the Archlinux forum and they ran out of ideas after 2 posts.
Avatar
chi (Moderator) #5
Member since Jun 2006 · 607 posts · Location: Munich Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
Quote by Poekies:
It was installed and enabled but it wasn't working. I'm not a Linux guru, but I posted on the Archlinux forum and they ran out of ideas after 2 posts.

I've replied you there as well, and as I said (and andi as well), the above error clearly indicates that the ldap php extension is not enabled. The fact that we ran out of ideas is simple put: there's nothing more you can do than telling you to enable it in the php.ini, if that would be a bug in the Arch Linux php package I am pretty sure it would be known already so my strongest guess is that the problem is related to your configuration.

You could post your php.ini for example (at a pastebin service), did you check the output of phpinfo()?
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
Poekies #6
Member for 2 weeks · 5 posts
Group memberships: Members
Show profile · Link to this post
Here is my php.ini
http://pastebin.com/da775d91

Here is my phpinfo
http://pastebin.com/d4b133d12

I also tried install libldap to see if that helps, but no luck.
I think that I'm probably missing a library or program, all I did was a base install of Arch, installed Apache and PHP. Then downloaded Dokuwiki.
This post was edited on 2008-05-07, 01:51 by Poekies.
Avatar
chi (Moderator) #7
Member since Jun 2006 · 607 posts · Location: Munich Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hmmm ok, you might have to install libldap as well.
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
Poekies #8
Member for 2 weeks · 5 posts
Group memberships: Members
Show profile · Link to this post
I think installing pam_ldap is the solution, it has dependancies on libldap.

The error goes away after that but I can't logon, I get an object can't be found error. But at least the initial error has been solved.

Thanks for your help, I appreciate it.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 1.6.4, © 2003-7 by Yves Goergen
Current time: 2008-05-17, 06:23:18 (UTC +02:00)
WikiForumIRCBugsTranslate