Thread:Extension talk:LDAP Authentication/AutoAuthDomain not working on MediaWiki 1.19.1 and LDAPAuthentication 2.0b (2)

First of all, thank you for this great extension, I had it properly working before, when using MediaWiki 1.18 and LDAPAuthentication 1.x

Since we upgraded to MediaWiki 1.19.1 and LDAP Authentication 2.0b, and not changing LocalSettings.php, it stopped working.

First minor thing I notice is the download page provides version 2.0a and I wasn't able to get 2.0b.

Then, after several hours of troubleshooting I can confirm I have a proper configuration since I was able to login manually entering my credentials. It stops working as soon as I enable $wgLDAPAutoAuthDomain

BTW, I'm using a Microsoft Active Directory 2003 server (migrated to 2008 format) and MediaWiki is hosted on a Debian server which has Apache + Kerberos working fine.

Here is my config: require_once ( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); require_once ( "$IP/extensions/LdapAuthentication/LdapAutoAuthentication.php" );
 * 1) LDAP Authentication Extension
 * 1) $wgAuth = new LdapAuthenticationPlugin;

$wgLDAPDebug             = 3; $wgDebugLogGroups["ldap"] = "/tmp/debug.log" ;
 * 1) Debugging options

$wgLDAPUseLocal          = false; $wgMinimalPasswordLength = 1; $wgLDAPDomainNames       = array( "intranet.com"); $wgLDAPServerNames       = array( "intranet.com" => "dc1.intranet.com"); $wgLDAPEncryptionType    = array( "intranet.com" => "clear"); $wgLDAPProxyAgent        = array( "intranet.com" => "cn=svc_php_ldap,ou=Services,ou=Users,dc=intranet,dc=com"); $wgLDAPProxyAgentPassword = array( "intranet.com" => "secretpass"); $wgLDAPSearchAttributes  = array( "intranet.com" => "sAMAccountName"); $wgLDAPBaseDNs           = array( "intranet.com" => "DC=intranet,DC=com"); $wgLDAPGroupBaseDNs      = array( "intranet.com" => "OU=Users,DC=intranet,DC=com"); $wgLDAPUserBaseDNs       = array( "intranet.com" => "OU=Users,DC=intranet,DC=com"); $wgLDAPRetrievePrefs     = array( "intranet.com" => true); $wgLDAPPreferences       = array( "intranet.com" => array( "email" => "mail", "realname" => "cn", "nickname" => "samaccountname", if ( isset ($_SERVER['REMOTE_USER'])) $wgLDAPAutoAuthUsername = strtolower(preg_replace( '/@.*/', '', $_SERVER["REMOTE_USER"] )); AutoAuthSetup;
 * 1) Single Domain Requiring Search Before Binding
 * 1) $wgLDAPOptions           = array( "intranet.com" => array( LDAP_OPT_PROTOCOL_VERSION, 3)); # Disabled as it was causing errors
 * 2) $wgLDAPort               = array( "intranet.com" => 389); # Not necessary
 * 3) Straight DN bind options
 * 4) $wgLDAPSearchStrings     = array( "intranet.com" => "intranet.com\\USER-NAME");
 * 5) Using Proxy Agent
 * 1) Pulling Preferences
 * 1) Kerberos Configuration
 * 2) $wgLDAPAutoAuthDomain    = "intranet.com";

Does anyone find anything wrong ? Is that a bug on the Extension ? Where can I get version 2.0b file to download?

Thanks in advance, Hernán.-