Thread:Extension talk:LDAP Authentication/Active Directory group synchronization problems/reply (2)

Thanks Ryan,

For my purposes I hacked it quickly, just wanted to let you know so you could come up with a more appropriate method (for example allowing the user to set the name attribute). :P

The code you posted works fine for groups without spaces given the (\w). I'm not very good with regular expressions so I replaced it the regex (in my case the group happens to be two words).

You'll also need a global statement for $wgLDAPGroupNameAttribute