Not logged in. · Lost password · Register
Forum: General Discussion Installation and Configuration RSS
Active directory integration
aztam #1
Member for a week · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Active directory integration
I am trying to setup LDAP authentication using dokuwiki and windows 2003 active directory.

my local.php contains the following
<?php
 
// Superuser
$conf['useacl'] = 1;
$conf['superuser']   = '@ict';    //The admin can be user or @group

 
// Lang
$conf['lang']        = 'en';              //your language
 
// For LDAP !
$conf['openregister'] = 0;
$conf['authtype'] = 'ldap';
 
$conf['auth']['ldap']['server']      = 'ldap://serveraddress.co.uk:389';
$conf['auth']['ldap']['binddn']           = '%{user}@%{server}';
$conf['auth']['ldap']['mapping']['name']  = 'displayname';
$conf['auth']['ldap']['mapping']['grps']  = array('memberof' => '/CN=(.+?),/i');
$conf['auth']['ldap']['referrals']        = 0;
$conf['auth']['ldap']['usertree']    = 'cn=%{user}, OU=test,DC=co, DC=uk';
$conf['auth']['ldap']['grouptree']   = 'OU=test, dc=co dc=uk';
 
$conf['auth']['ldap']['version']    = 3;
 
# Optional debugging
$conf['auth']['ldap']['debug']      = true;
?>


I have a test OU in active directory which contains one user (testuser).

When attempting to login using the testuser account I get the following error msgs

LDAP: bind with cn=testuser, OU=test,DC=co, DC=uk failed [ldap.class.php:90]
LDAP user dn bind: Invalid credentials
Sorry, username or password was wrong.

I am a bit stumped as to what the problem could be. Any help would be very much appreciated.
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:31:00 (UTC +02:00)
WikiForumIRCBugsTranslate