Thread:Extension talk:LDAP Authentication/LDAP search for special entry/reply (5)

Hi Ryan,

What's the status of this? I tried to use it with both MediaWiki and the Ldap extension at the current version. It doesn't seem to work.

All I'm trying to do is filter for a certain ou attribute. So, my wgLDAPAuthAttribute for the domain looks like this: "(ou=mydepartment)". Looking at the code, it seems that the extension doesn't look for an ou attribute and then matches the value, but instead, it looks whether there is an "ou=mydepartment" attribute, which frankly, doesn't make any sense. It looks like I can filter only based on whether an attribute exists, not whether the proper value for this attribute is set.

Edit: Ok, I just learnt that the current snapshot version is way behind what's in the repositories. I checked out the latest version from the trunk. It works now, but not after a little bit of struggling with the syntax. Turns out, the wgLDAPAuthAttribute needs to be specified without parentheses now. So, "(ou=mydepartment)" is wrong. Correct would be "ou=mydepartment". It would be nice if you could update the documentation accordingly.