Hi All,

I'm trying to authenticate users on that live on different LDAP searchBase 
values on the same server using an extra url parameter. This way, two users can 
have the same uid, but live in different bases. For example, base company 1, 
company 2, etc.  It's identical to the requirement described in this post: 
http://n4.nabble.com/Dynamic-LDAP-searchBase-td261436.html

In looking at the BindLdapAuthenticationHandler class, my hope was to override 
a method which gets the value of the searchBase, modify searchBase with my 
dynamic searchBase value, and have the authentication method do its thing. The 
problem is that all property access is private and almost all the relevant 
methods are declared final. Moreover, the reference to the searchBase value is 
taken directly from the class searchBase property, not the getSearchBase() 
method.

In the post above, Scott mentions there is a method one can override to have a 
dynamic searchBase. With methods declared as final, that doesn't seem to be an 
option. It seems I'll need to copy/paste BindLdapAuthenticationHandler and make 
the required changes ... rather than re-use code.

I hope I'm wrong. Is there a way to extend and reuse 
BindLdapAuthenticationHandler in this scenario?

Thanks for the help!

Cheers,

___________________

Greg Jenkins
Senior Software Developer
[email protected]<mailto:[email protected]>

DNAdirect
Pier 9 Suite 105
San Francisco, CA 94111

P 415-347-3456
F 415-646-0224

www.dnadirect.com<http://www.dnadirect.com/>
___________________

This e-mail and any attachments may contain CONFIDENTIAL information, including 
PROTECTED HEALTH INFORMATION. If you are not the intended recipient, any use or 
disclosure of this information is STRICTLY PROHIBITED; you are requested to 
delete this e-mail and any attachments, notify the sender immediately at 
877-646-0222 or by email at [email protected] <mailto:[email protected]



-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to