The moose likes Security and the fly likes LDAP Context properties and LDAP authentication. 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 » Engineering » Security
Bookmark "LDAP Context properties and LDAP authentication." Watch "LDAP Context properties and LDAP authentication." New topic

LDAP Context properties and LDAP authentication.

butter scotch

Joined: Aug 22, 2012
Posts: 1
I have a doubt in LDAP context creation and authentication of a user from LDAP server.

While creating the context of LDAP, i use binding domain name and binding password as shown below:

Hashtable env = new Hashtable();
env.put(Context.SECURITY_PRINCIPAL,"cn=directory manager");
DirContext ctx = new InitialDirContext(env);

Now after successful creation of LDAP context, i want to authenticate one user from LDAP server eg: username : "xyz@domain.com" and password : "passwd1@3".
I am stuck at this point that how to authenticate this user from LDAP server through Java Client.

I agree. Here's the link: http://aspose.com/file-tools
subject: LDAP Context properties and LDAP authentication.
Similar Threads
Webapp and LDAP authentication
Connecting to LDAP server over SSL without using certificates
Alternative strategies for authenticating against LDAP w/ JNDI
servlet querying active directory