IntelliJ Java IDE
The moose likes Security and the fly likes Trouble with LDAP InitialDirContext Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "Trouble with LDAP InitialDirContext" Watch "Trouble with LDAP InitialDirContext" New topic
Author

Trouble with LDAP InitialDirContext

David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
I have a class that works when I set:

authEnv.put(Context.SECURITY_AUTHENTICATION, "simple");

But when I pass "none" instead, setting the password to "", the following line fails to return anything:

NamingEnumeration e = authContext.search(base, "uid=" + userName,controls);
 
 
subject: Trouble with LDAP InitialDirContext
 
Threads others viewed
Drivel
How to become moderator
SCEA logo
Statement and PreparedStatement
How old are you scea?
developer file tools