You are not logged in.

#1 2008-05-01 23:55:43

Beresford
Member
Registered: 2005-07-31
Posts: 23

Dokuwiki authentication against AD [SOLVED]

Hi there,

I'm trying to get Dokuwiki to authenticate again AD.

Dokuwiki setup with Apache and PHP.

I've enabled the ldap module in PHP, but am getting this error when I visit the dokuwiki site.

LDAP err: PHP LDAP extension not found. [ldap.class.php:25]

Any ideas?

Last edited by Beresford (2008-05-07 23:36:44)

Offline

#2 2008-05-02 00:31:18

chimeric
Member
From: Munich, Germany
Registered: 2007-10-07
Posts: 254
Website

Re: Dokuwiki authentication against AD [SOLVED]

Beresford wrote:

I've enabled the ldap module in PHP, but am getting this error when I visit the dokuwiki site.

LDAP err: PHP LDAP extension not found. [ldap.class.php:25]

It seems the LDAP extension is not active. The LDAP backend of DokuWiki checks if php's ldap_connect() function is availabe, if that's not the case it throws the above error. Have you checked if it's listed in the output of phpinfo()?

Offline

#3 2008-05-02 01:13:38

Beresford
Member
Registered: 2005-07-31
Posts: 23

Re: Dokuwiki authentication against AD [SOLVED]

I did check that, it has:

--with-ldap=shared

not sure if that means it's enabled of not, it's the normal ArchLinux build of PHP.

Offline

#4 2008-05-02 02:59:45

cactus
Taco Eater
From: ಠ_ರೃ
Registered: 2004-05-25
Posts: 4,611
Website

Re: Dokuwiki authentication against AD [SOLVED]

you probably need to uncomment the module in the php.ini file
look for..

;extension=ldap.so

and remove the ; from the front.


ಠ_ಠ
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos." -- Cactus' Law

Offline

#5 2008-05-02 04:14:56

Beresford
Member
Registered: 2005-07-31
Posts: 23

Re: Dokuwiki authentication against AD [SOLVED]

I did that (that's how I enabled PHP, see first post), then restarted apache, but no luck.

Last edited by Beresford (2008-05-02 04:17:25)

Offline

#6 2008-05-06 03:08:36

Beresford
Member
Registered: 2005-07-31
Posts: 23

Re: Dokuwiki authentication against AD [SOLVED]

Installing package pam_ldap solves this issue.

Last edited by Beresford (2008-05-07 23:36:22)

Offline

Board footer

Powered by FluxBB