File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes LDAP query string or operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "LDAP query string or operation" Watch "LDAP query string or operation" New topic
Author

LDAP query string or operation

levani dvalishvili
Ranch Hand

Joined: Mar 01, 2005
Posts: 99
I have the case that Users that neet to be authenticated are under two differenct OUs
UserBaseDN="OU=someOU1,DC=web,DC=javaranch,DC=com"
UserBaseDN="OU=someOU2,DC=web,DC=javaranch,DC=com"

user are distributed in both OUs half is under someOu1 and other half is in someOU2 so I am wondering how would I construct a userBase attribute :

userBase="ou=someOU,dc=yourcompany,dc=com"
userSearch="(uid={0})"
roleBase="ou=groups,dc=yourcompany,dc=com"
roleName="cn"
roleSearch="(member={0})"


any suggestions?
[ March 07, 2006: Message edited by: levani dvalishvili ]

SCJP 1.5(Done) SCJA 1.0(Done)<br />SCWCD(in Progress...)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: LDAP query string or operation
 
Similar Threads
JAAS Configuration gives Authontication Failure Error
LDAP with JNDI trouble
JAAS Configuration gives Authontication Failure Error
JNDIRealm and digest
Windows Authentication Using Tomcat 5.0