users@glassfish.java.net

how to make a case-insensitive LDAP query against active directory?

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Apr 2008 04:24:31 PDT

Dear all,

   i have a problem that i can't query the active directory in a case-insensitive manner.

for example, if i want to find directory user with name = ABC or abc or ABc..
currently i just use LdapContext.search(String name, String filter, SearchControls cons)
(parameter value of filter = "sAAAccountName='abc', 'ABC'...etc)

but this method do a case sensitive search...

could anybody tell me how can i do search / filtering ignoring case??

thanks.

lsp.
[Message sent by forum member 'imperfect' (imperfect)]

http://forums.java.net/jive/thread.jspa?messageID=269036