Thread:Extension talk:LDAP Authentication/Trying to update to newest version but groups don't see to be working.

Trying to upgrade from 1.2e(Working) to 2.1.0. After upgrading I get the message "Couldn't find the user in any groups." in the logs.

2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering validDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 User is using a valid domain (AD). 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Setting domain as: AD 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getCanonicalName 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Username is: USER 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Munged username: USER 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering authenticate for username USER 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering Connect 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server). 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getSearchString 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Doing a straight bind 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Binding as the user 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Bound successfully 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getUserDN 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getBaseDN 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn. 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getBaseDN 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 basedn is not set. 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Couldn't find an entry 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Fetched UserDN: 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getGroups 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Retrieving LDAP group membership 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Searching for the groups 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering searchGroups 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getBaseDN 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 basedn is DC=AD,DC=DOMAIN,DC=edu 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering searchNestedGroups 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 No more groups to search. 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering checkGroups 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Checking for (new style) group membership 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Required groups: cn=ict,ou=groups,ou=ict,ou=bu managed objects,dc=AD,dc=DOMAIN,dc=edu::cn=sis,ou=global security groups,dc=AD,dc=DOMAIN,dc=edu 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Couldn't find the user in any groups. 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering strict. 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Returning true in strict. 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering allowPasswordChange 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering modifyUITemplate 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain 2015-01-20 16:54:00 FSWEB1 butechwiki: 2.1.0 Entering getDomain

Sure it is something that changed with the config but i have reviewed it several times and haven't figured it out yet. What am I missing?

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin;

$wgLDAPDomainNames = array("AD"); $wgLDAPGroupBaseDNs = array( "AD"=>"DC=AD,DC=DOMAIN,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=BU Managed Objects,DC=AD,DC=DOMAIN,DC=edu", "CN=SIS,OU=Global Security Groups,DC=AD,DC=DOMAIN,DC=edu") ); $wgLDAPGroupSearchNestedGroups = array( "AD"=>true ); $wgLDAPEncryptionType = array("AD"=>"clear"); $wgLDAPServerNames = array("AD"=>"ad3.AD.DOMAIN.edu"); $wgLDAPSearchAttributes = array( "AD"=>"sAMAccountName" ); $wgLDAPSearchStrings = array( "AD"=>"AD\\USER-NAME"  #,  #"AD"=>"uid=USER-NAME,ou=people,dc=LDAP,dc=example,dc=com"  ); $wgLDAPDebug = 1; $wgDebugLogGroups["ldap"] = "C:\inetpub\logs\LogFiles\PHP\ldap.log" ;