Closed (fixed)
Project:
LDAP integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2010 at 20:21 UTC
Updated:
4 May 2012 at 20:20 UTC
In _ldapauth_user_lookup() when the search() method is called, the $attributes argument isn't passed, and in my case, this is causing only the dn to be returned. I need it to also return username attribute (sAMAccountName in my case) so that it passes through the rest of the logic for a successful auth.
What I'm running into could very well be an edge case, but the fix seems pretty harmless. I simply added array($name_attr) when the search() method is called, which fixes my issue.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| ldapauth_attributes.patch | 875 bytes | msonnabaum |
Comments
Comment #1
cgmonroe commentedThis should be fixed in the dev version. All searches and retrieveAttribute calls now include a specific list of needed attributes... and there's a hook if you want to add your site specific stuff to it via another module.