Thread:Extension talk:LDAP Authentication/why is it "Doing an anonymous bind" instead of using the username and password i entered?/reply (8)

I think this is more correct but still not working.

$wgLDAPDomainNames = array("AD"); $wgLDAPGroupBaseDNs = array( "AD"=>"DC=AD,DC=school,DC=edu" ); $wgLDAPRetrievePrefs = array( 'AD' => true ); $wgLDAPPreferences = $wgLDAPPreferences = array('AD'=>array( "email"=>"mail","realname"=>"cn","nickname"=>"sAMAccountName")); $wgLDAPGroupUseFullDN = array( "AD"=>true ); $wgLDAPGroupObjectclass = array( "AD"=>"group" ); $wgLDAPGroupAttribute = array( "AD"=>"member" ); $wgLDAPGroupNameAttribute = array( "AD"=>"cn" ); $wgLDAPRequiredGroups = array( "AD"=>array("CN=ICT,OU=Groups,OU=ICT,OU=School Managed Objects,DC=AD,DC=school,DC=edu") ); $wgLDAPGroupSearchNestedGroups = array( "AD"=>true ); $wgLDAPEncryptionType = array("AD"=>"ssl"); $wgLDAPServerNames = array("AD"=>"AD.school.edu"); $wgLDAPSearchAttributes = array( "AD"=>"sAMAccountName" ); $wgLDAPSearchStrings = array( "AD"=>"AD\\USER-NAME"  #,  #"AD"=>"uid=USER-NAME,ou=people,dc=LDAP,dc=example,dc=com"  );

2011-06-28 18:10:11 butechwiki: 1.2e Entering validDomain 2011-06-28 18:10:11 butechwiki: 1.2e User is using a valid domain. 2011-06-28 18:10:11 butechwiki: 1.2e Setting domain as: AD 2011-06-28 18:10:11  butechwiki: 1.2e Entering getCanonicalName 2011-06-28 18:10:11 butechwiki: 1.2e Username isn't empty. 2011-06-28 18:10:11 butechwiki: 1.2e Munged username: User 2011-06-28 18:10:11 butechwiki: 1.2e Entering userExists 2011-06-28 18:10:11 butechwiki: 1.2e 2011-06-28 18:10:11 butechwiki: 1.2e Entering authenticate 2011-06-28 18:10:11 butechwiki: 1.2e 2011-06-28 18:10:11 butechwiki: 1.2e Entering Connect 2011-06-28 18:10:11 butechwiki: 1.2e Using SSL 2011-06-28 18:10:11 butechwiki: 1.2e Using servers:  ldaps://AD.school.edu 2011-06-28 18:10:11 butechwiki: 1.2e Connected successfully 2011-06-28 18:10:11 butechwiki: 1.2e Entering getSearchString 2011-06-28 18:10:11 butechwiki: 1.2e Doing a straight bind 2011-06-28 18:10:11 butechwiki: 1.2e userdn is: AD\User 2011-06-28 18:10:11 butechwiki: 1.2e 2011-06-28 18:10:11 butechwiki: 1.2e Binding as the user 2011-06-28 18:10:11 butechwiki: 1.2e Failed to bind as AD\User 2011-06-28 18:10:12 butechwiki: 1.2e with password: XXX 2011-06-28 18:10:12 butechwiki: 1.2e Entering allowPasswordChange 2011-06-28 18:10:12 butechwiki: 1.2e Entering modifyUITemplate