Skip to Content
0
Former Member
May 09, 2005 at 02:21 PM

How to use the UME api in order to search the LDAP?

17 Views

Hello,

I have an application which connects to the LDAP the portal is connecting to and search users according to a certain search criteria.

Here is the relevant piece of code:

Hashtable env = new Hashtable();
...
DirContext ctx = new InitialDirContext(env);
SearchControls controls = new SearchControls();
String filter = "firstName=..."
NamingEnumeration results = ctx.search("OU=OUs", filter, controls);

I would like to do this same search using the UME API.

Can someone please show me the equivalent code to it using the UME API?