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.
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.
aztam
Show profile
Link to this post