Robert r. Sanders wrote:
I have a basic OpenLDAP server setup which Samba 2 is authenticating
against. My understanding is that Samba 2 is fairly picky about the
LDAP scheme it uses, so I don't want to mess with this. The current
LdapPasswordAuthenticationDao assumes that the user will be identified
by CN=username,... with the scheme we are using the users are
identified by uid=username,... I have previously solved this by
using a MessageFormat (the way Tomcat's JNDI authenticator does); but
am not to particular about how so long as I can get authentication to
work, so to stick with what was already in the
LdapPasswordAuthenticationDao I added a property "userAttribute" -
which defaults to "CN" but can be changes. I also took the liberty of
adding some getter methods, etc... All is included in the attached
diff file (unified format, 3 lines of context).
Thanks Robert - patch applied.
Best regards
Ben
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer