• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing LDAP Registry using Java API

 
Vishnu Murthy
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We implementing the "Change Password" functionality for our application, our application user are LDAP registry users,
When the user enter his id, password and confirmation password we want to access the LDAP registry and validate his password and changes it if he is a valid user and passsword provided him is correct.

I am not getting as how to access the LDAP registry using JAVA API. Is there any way to accessing LDAP user's information such, userId, and pwd and change it using JAVA API.

Can someone help me, as how access LDAP Users information using JAVA.


Thanks in Advance

Vishnu
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java has an api called the Java Naming and Directory Interface (JNDI) which provides a single interface to multiple naming and directory services. The JNDI Tutorial has a section on working with LDAP
 
osman cinar eren
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

how can we change the password if the password has expired? When I try to change a password which is expired, I get a password expired exception.

So what do the experts do for this?

any help will be appreciated.
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not an expert, but I'd say you need to authenticate against LDAP as a user who has the rights to change passwords and re-set the expired password.
YMMV
 
Padma Lalwani
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to JNDI, the Netscape Directory SDK is pretty good & simple to use too

http://www.mozilla.org/directory/javasdk.html
 
osman cinar eren
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<Quote>I'm not an expert, but I'd say you need to authenticate against LDAP as a user who has the rights to change passwords and re-set the expired password.</Quote>

I do exactly what you said and i get the password expired error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic