require_once( "includes/LDAPAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( "HAHS-1" ); $wgLDAPServerNames = array( "HAHS-1"=>"ad.hoopeston.k12.il.us" ); #$wgLDAPSearchStrings = array( "HAHS-1"=>"USER-NAME@ad.hoopeston.k12.il.us" ); $wgLDAPSearchStrings = array( "HAHS-1"=>"HAHS-1\\USER-NAME" ); $wgLDAPUseSSL = false; //not recommended but OK for testing $wgLDAPUseLocal = false; $wgMinimalPasswordLength = 1; #$wgLDAPAddLDAPUsers = false; #$wgLDAPUpdateLDAP = false; #$wgLDAPMailPassword = false; #$wgLDAPRetrievePrefs = false; $wgLDAPRequiredGroups = array( "HAHS-1"=>array("cn=comptech,ou=ad,dc=hoopeston,dc=k12,dc=il,dc=us") ); $wgLDAPGroupUseFullDN = array( "HAHS-1"=>true ); $wgLDAPGroupObjectclass = array( "HAHS-1"=>"group" ); $wgLDAPGroupAttribute = array( "HAHS-1"=>"member" ); $wgLDAPGroupSearchNestedGroups = array( "HAHS-1"=>false ); $wgLDAPBaseDNs = array( "HAHS-1"=>"ou=ad,dc=hoopeston,dc=k12,dc=il,dc=us" ); #$wgLDAPGroupDN = "cn=comptech,ou=ad,dc=hoopeston,dc=k12,dc=il,dc=us"; $wgLDAPDebug = 99; Entering validDomain User is using a valid domain Entering getCanonicalName Munged username: Hardenrm Entering Connect Entering Connect Not Using SSL Using servers: ldap://ad.hoopeston.k12.il.us Connected successfully Entering getSearchString Doing a straight bind userdn is: HAHS-1\Hardenrm Binding as the user Binded successfully Checking for (new style) group membership Entering isMemberOfRequiredLdapGroup Required groups:cn=comptech,ou=ad,dc=hoopeston,dc=k12,dc=il,dc=us Entering getGroups Search string: (&(member=HAHS-1\Hardenrm)(objectclass=group)) Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in /services/wiki/www/includes/LDAPAuthentication.php on line 842 Warning: array_shift() [function.array-shift]: The argument should be an array in /services/wiki/www/includes/LDAPAuthentication.php on line 845 Warning: Invalid argument supplied for foreach() in /services/wiki/www/includes/LDAPAuthentication.php on line 848 Returned groups: Couldn't find the user in any groups (1).