Regarding previouse email I want to list all users from my active directory in a java program. but I dont know what would be the parameter to call list method . i am geting
javax.naming.InvalidNameException
which shows I am not using correct name for my context.
does anybody know about that?
try {
.
.
LdapContext ctx = new InitialLdapContext(env, null);
String filter = "(&(sn=Geisel)(mail=*))";
NamingEnumeration answer = ctx.list("CN=Users", filter, ctls);
.