[Catalyst] patch for
Catalyst::Authentication::Store::LDAP::Backend lookup_roles method
Peter Karman
peter at peknet.com
Thu Jul 10 22:22:38 BST 2008
On 07/09/2008 07:00 PM, Scott Pham (scpham) wrote:
> I ran across an issue around calling $c->user->roles using the LDAP auth
> store. Basically it would only return 1 role instead of the 30 or so I'm
> a member of. After digging around I created this patch for it. I haven't
> taken a poke at the Net::LDAP code yet, but I suspect the get_value
> method does a want_array. Once I changed it, it works fine now.
>
> Please let me know if it's not right or I'm not using the module
> correctly...or any pointers for that matter ;)
Your LDAP schema is a little unusual, but you were right in pointing out that
Net::LDAP::Entry only returns one value when called in scalar context. I applied the patch
after testing it locally against my POSIX schema.
http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=8100
Thanks.
--
Peter Karman . peter at peknet.com . http://peknet.com/
More information about the Catalyst
mailing list