File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes LDAP Search Filter in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "LDAP Search Filter in java" Watch "LDAP Search Filter in java" New topic

LDAP Search Filter in java

kamabotti khan

Joined: Jul 13, 2010
Posts: 22

I want to reterive a attribute name unique member whose value is only numeric

I am using LDAP search filter to reterive it

In the above code I get the all groups whose name is xyz which has an attribute uniqueMember but I want only those groups which has uniqueMember attribute whose value is only numeric

For ex in ldap structure I have like this

Attribute Name Value
1.uniqueMember uid=18761,ou=people,o=xxx,c=US
2.uniqueMember uid=gsa,ou=people,o=xxx,c=us

So i want to get only Number 2 in my value whose value uid=is number but not uid=gsa which start with letters ,

I added a filter like this but didnot work

It is sorta covered in the JavaRanch Style Guide.
subject: LDAP Search Filter in java
Similar Threads
Configuring the application policy in login-config.xml for LDAP Apache DS
ApacheDS 1.0.2 LDAP Connection timed out: connect
JBOSS LdapLoginModule authentication. Help needed for code to use LoginContext
How to configure Tomcat for authentication against Active Directory of Windows Server 2003
LDAP Integration with JBoss