Thread:Extension talk:LDAP Authentication/AutoAuth with Windows AD : cannot pull preferences

Hello there,

I am having a hard time pulling preferences from the AD domain when new users log in. I am using a proxy account with all the read privileges but I am probably missing something because the DN used by the extension to pull the data is always incorrect (although the username is found).

Here is my config so far :

$wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array( 'MYDOM' ); $wgLDAPServerNames = array( 'MYDOM' => 'server.mydom.tld' ); $wgLDAPSearchStrings = array( 'MYDOM' =>	'MYDOM\\USER-NAME' ); $wgLDAPProxyAgent = array( 'MYDOM' => 'CN=LectureAD,OU=Service Accounts,DC=mydom,DC=tld' ); $wgLDAPProxyAgentPassword = array( 'MYDOM' => 'LectureAD' ); $wgLDAPUseLocal = false; $wgLDAPEncryptionType = array( 'MYDOM' => 'ssl' ); $wgMinimalPasswordLength = 1; $wgLDAPBaseDNs = array( 'MYDOM' => 'cn=mydom users,dc=mydom,dc=tld'); $wgLDAPSearchAttributes = array( 'MYDOM' => 'cn' ); if (isset($_SERVER['AUTH_USER'])) { $wgLDAPAutoAuthUsername = preg_replace( '/mydom\\\\/', '', strtolower($_SERVER['AUTH_USER'])) ; } $wgLDAPAutoAuthDomain = "MYDOM"; $wgLDAPRetrievePrefs = array( 'MYDOM' => true ); $wgLDAPPreferences = array('MYDOM'=>array( "email"=>"mail","realname"=>"displayname")); AutoAuthSetup;

I am unsure how to proceed any further :( Thanks for your help !

Romain