LDAP search for special entry
Hey Ryan, thx for helping... but this hint doesnt worked for me...or I'am not able to do it right... I get the following message:
2012-03-14 20:19:53 wikidb-wiki_: 1.2e Binding as the user 2012-03-14 20:19:53 wikidb-wiki_: 1.2e Bound successfully 2012-03-14 20:19:53 wikidb-wiki_: 1.2e Checking for auth attributes: (eduPersonEntitlement=urn:mace:dir:entitlement:company:attribute) 2012-03-14 20:19:53 wikidb-wiki_: 1.2e Failed auth attribute check
wgLDAPAuthAttribute = array("LDAPdomain"=>"(eduPersonEntitlement=urn:mace:dir:entitlement:company:attribute)");
Do you have any suggestions, what I do wrong?
Thanks for help.
Looking at the code it seems I totally broke this at some point.
I believe I just fixed it in r113879 (the current trunk) by reverting to the older code, though. Can you try it out and let me know if it is working properly?
I've just replaced the code with these older from r113879...this sadly doesn't show any betterment... Do you have any other ideas?
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.