Thread:Extension talk:LDAP Authentication/LDAP Group selection

Trying to get the LDAP extension to only pull groups from AD that begin with a certain term - eg, if AD contains groups "foo wibble", "foo wobble" and "somethingelse", and a user is a member of all three, only "foo*" will be pulled through and attached to the user in Mediawiki. Seems quite simple, although I'm failing utterly thus far. Any ideas? Cheers. :-)

Mediawiki: 1.16.0 LDAP Authentication: 1.2b Alpha


 * edit: The rest of the LDAP config works fine, but pulls *all* groups through (which I don't want to be displayed to everyone) Sorry, should have mentioned that first time. *fail*

edit2: I've somehow gone from a working config to a broken config. It *was* pulling all LDAP groups through, in trying to only make it pull groups like "foo*" through, it stopped pulling all groups. Reverting the config to how it was before doesn't appear to have solved it, so I can only assume it was working by fluke previously. Any ideas?

150 151 require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); 152 $wgAuth = new LdapAuthenticationPlugin; 153 154 155 $wgLDAPDomainNames = array( "adserver.foobar.org" ); 156 $wgLDAPServerNames = array( "adserver.foobar.org" => "adserver.foobar.org" ); 157 $wgLDAPSearchStrings = array( "adserver.foobar.org" => "FOO_DO\\USER-NAME" ); 158 $wgLDAPUseLocal = true; 159 $wgLDAPEncryptionType = array("adserver.foobar.org"=>"tls"); 160 $wgLDAPPort = array("adserver.foobar.org"=>389); 161 $wgMinimalPasswordLength = 1; 162 $wgLDAPGroupUseFullDN = array( "adserver.foobar.org" => true ); 163 164 $wgLDAPBaseDNs = array( "adserver.foobar.org" => "dc=aserver,dc=foobar,dc=org" ); 165 $wgLDAPSearchAttributes = array( "adserver.foobar.org" => "sAMAccountName" ); 166 $wgLDAPGroupsUseMemberOf = array( "adserver.foobar.org" => true ); 167 168 $wgLDAPGroupObjectclass = array( "adserver.foobar.org" => "group" ); 169 $wgLDAPGroupAttribute = array( "adserver.foobar.org" => "member" ); 170 $wgLDAPGroupNameAttribute = array( "adserver.foobar.org" => "cn" ); 171 172 $wgLDAPUseLDAPGroups = array( "adserver.foobar.org" => true ); 173 $wgLDAPPreferences = array("adserver.foobar.org"=>array( "email"=>"mail","realname"=>"cn","nickname"=>"cn")); 174 $wgLDAPGroupSearchNestedGroups = array( "adserver.foobar.org" => true ); 175 176 $wgLDAPGroupsPrevail = array( "adserver.foobar.org" => true ); 177 $wgLDAPLowerCaseUsername = array( "adserver.foobar.org" => true ); 178 179 180 $wgDebugLogGroups["ldap"] = "/tmp/debug.log" ; 181 $wgLDAPDebug = 5; 182 $wgShowExceptionDetails = true;


 * hopeful bump* :-/