Thread:Extension talk:LDAP Authentication/Failed to bind as: DOMAIN\User

Hi, I am unsuccessful in authenticating via LDAP using Mediawiki 1.23 using ldap authentication extension 2.1 on a Windows Server 2008 R2 running PHP 5.5.13 using IIS. The localsettings.php is as follows:

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );

$wgAuth = new LdapAuthenticationPlugin;

$wgLDAPDomainNames = array('DOMAIN');

$wgLDAPServerNames = array('DOMAIN' => 'ldapserver.domain.com' );

$wgLDAPSearchStrings = array('DOMAIN' => 'DOMAIN\\USER-NAME');

$wgLDAPEncryptionType = array ('DOMAIN' => 'clear');

$wgLDAPBaseDNs = array('DOMAIN' => 'cn=Users,dc=domain,dc=com');

$wgLDAPSearchAttributes = array('DOMAIN' => 'sAMAccountName');

$wgLDAPProxyAgent = array('DOMAIN' => 'DOMAIN\\proxyuser' );

$wgLDAPProxyAgentPassword = array('DOMAIN' => '**********');

$wgLDAPUpdateLDAP = array('DOMAIN' => false );

$wgLDAPAddLDAPUsers = array('DOMAIN' => false);

$wgLDAPPreferences = array( 'DOMAIN' => true );

The log results are as follows:

2014-06-06 14:45:16 WIKISERVER wikidb: Entering validDomain

2014-06-06 14:45:16 WIKISERVER wikidb: User is not using a valid domain.

2014-06-06 14:45:16 WIKISERVER wikidb: Setting domain as: invaliddomain

2014-06-06 14:45:16 WIKISERVER wikidb: Entering allowPasswordChange

2014-06-06 14:45:16 WIKISERVER wikidb: Entering modifyUITemplate

2014-06-06 14:45:22 WIKISERVER wikidb: Entering validDomain

2014-06-06 14:45:22 WIKISERVER wikidb: User is using a valid domain.

2014-06-06 14:45:22 WIKISERVER wikidb: Setting domain as: DOMAIN

2014-06-06 14:45:22 WIKISERVER wikidb: Entering getCanonicalName

2014-06-06 14:45:22 WIKISERVER wikidb: Username isn't empty.

2014-06-06 14:45:22 WIKISERVER wikidb: Munged username: User

2014-06-06 14:45:22 WIKISERVER wikidb: Entering authenticate

2014-06-06 14:45:22 WIKISERVER wikidb:

2014-06-06 14:45:22 WIKISERVER wikidb: Entering Connect

2014-06-06 14:45:22 WIKISERVER wikidb: Using TLS or not using encryption.

2014-06-06 14:45:22 WIKISERVER wikidb: Using servers: ldap://ldapserver.domain.com

2014-06-06 14:45:22 WIKISERVER wikidb: Connected successfully

2014-06-06 14:45:22 WIKISERVER wikidb: Entering getSearchString

2014-06-06 14:45:22 WIKISERVER wikidb: Doing a straight bind

2014-06-06 14:45:22 WIKISERVER wikidb: userdn is: DOMAIN\User

2014-06-06 14:45:22 WIKISERVER wikidb:

2014-06-06 14:45:22 WIKISERVER wikidb: Binding as the user

2014-06-06 14:45:22 WIKISERVER wikidb: Failed to bind as DOMAIN\User

2014-06-06 14:45:22 WIKISERVER wikidb: Entering strict.

2014-06-06 14:45:22 WIKISERVER wikidb: Returning true in strict.

2014-06-06 14:45:22 WIKISERVER wikidb: Entering allowPasswordChange

2014-06-06 14:45:22 WIKISERVER wikidb: Entering modifyUITemplate

I have checked php.ini and it includes extention=php_ldap.dll.

Any suggestion?

Many thanks!

-sul.