LDAP subsearch bug
"Shawn Henck" <shawn.henck-XORCulkK3Yd8UrSeD/[email protected]> Wed, 14 Mar 2007 10:03:21 -0400
| Newsgroups | gmane.comp.java.xplanner.devel |
|---|---|
| Organization | Spunlogic |
| Message-ID | <[email protected]> |
When configuring Xplanner with LDAP I noticed that subsearches were not
being handled even when setting
xplanner.security.login[0].option.userSubtree=true.
I went through the source code and noticed one line of code that was
incorrect.
In com.sabre.security.jndi.JNDIAuthenticatorImpl there is this function.
public void setUserSubtree(String userSubtree) {
this.userSubtree = Boolean.getBoolean(userSubtree);
}
Which according to the API
Returns true if and only if the system property named by the argument exists
and is equal to the string "true".
I changed it to
public void setUserSubtree(String userSubtree) {
this.userSubtree = Boolean.parseBoolean(userSubtree);
}
Everything worked great afterwards.
I wasn't sure how to submit this is a bug but found this e-mail list for
devs.
Thanks,
Shawn Henck
Java Developer
Direct: 404.601.4372
shawn.henck-XORCulkK3Yd8UrSeD/[email protected]
Spunlogic
Expect More From the Web
www.spunlogic.com
Looking for insights and tips on all aspects of interactive marketing? Visit
Spunlogic's Blog for a look inside the minds of a leading interactive
agency.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV