Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Active Directory and Dokuwiki
Avatar
Dokunewb #1
Member since Jan 2007 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Active Directory and Dokuwiki
I've read the article on getting Active Directory authentication and DokuWiki to work together. I added this to my local.php

$conf['authtype']   = 'ldap';
$conf['auth']['ldap']['server']      = 'ldap://server.domain.com:389';
$conf['auth']['ldap']['usertree']    = 'cn=users,dc=domain,dc=com';
$conf['auth']['ldap']['grouptree']   = 'cn=groups,dc=domain,dc=com';
$conf['auth']['ldap']['userfilter']  = '(&(uid=%{user})(objectClass=posixAccount))';
$conf['auth']['ldap']['groupfilter'] = '(&(objectClass=posixGroup)(memberUID=%{uid}))';
$conf['auth']['ldap']['version']     = 3;
$conf['auth']['ldap']['debug']       = true;

and I get 2 errors, LDAP err: PHP LDAP extension not found. [ldap.class.php:25]
and User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin.

I checked to see if that file ldap.class.php is there and it in the inc/auth directory.

I tried some of the other ways to get it set up and none of them worked, although I didn't start getting the ldap.class.php error until I set my local.php to the above settings. I would just get the User authentication is temporarily unavailable error. Would having my domain controllers at Windows 2003 R2 do anything? Didn't know if they use a different version of LDAP.
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3509 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Dokunewb:
LDAP err: PHP LDAP extension not found. [ldap.class.php:25]

You need the LDAP extension for PHP.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Dokunewb #3
Member since Jan 2007 · 4 posts
Group memberships: Members
Show profile · Link to this post
I finally got time to to install ldap extension for php and now I get this error whenever I log in

LDAP user search: Operations error [ldap.class.php:173]
Sorry, username or password was wrong.


Any suggestions?

1. copy php_ldap.dll from the extension folder to winnt/system32
2. edit winnt/php.ini so that ldap is enabled (uncomment the line).
3. restart IIS.


I did this to install ldap for PHP
Avatar
Dokunewb #4
Member since Jan 2007 · 4 posts
Group memberships: Members
Show profile · Link to this post
I figured out what was wrong. I need to copy libeay32.dll and ssleay32.dll to the C:\Windows\system32 folder on the local drive. Works like a charm now.
Avatar
Les #5
Member since Jun 2006 · 5 posts · Location: Wivenhoe, Essex
Group memberships: Members
Show profile · Link to this post
I had a slightly different experience. I got the messages "User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin" and something about Logon not being available when I tried to run the wiki with force_redirect = 1 and the php5isapi.dll instead of force_redirect = 0 and php-cgi.exe.

I don't have libeay32.dll and ssleay32.dll to the C:\Windows\system32 folder but it works with php-cgi.exe.

I also replaced the PHP folder with a newer version - php-5.0.5-Win32

I would like to get the wiki running with force_redirect = 1 and the php5isapi.dll instead of force_redirect = 0 and php-cgi.exe, but must have ldap authentication and ssl pages.


Les
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
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, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-18, 06:38:32 (UTC +01:00)