aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Accessing LDAP Registry using Java API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Accessing LDAP Registry using Java API" Watch "Accessing LDAP Registry using Java API" New topic
Author

Accessing LDAP Registry using Java API

Vishnu Murthy
Ranch Hand

Joined: Jan 04, 2001
Posts: 56
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

Joined: Oct 29, 2001
Posts: 8911
    
    8

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
osman cinar eren
Ranch Hand

Joined: Jan 25, 2005
Posts: 78
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.


SCJP/SCWCD
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8911
    
    8

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

Joined: Nov 02, 2004
Posts: 49
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

Joined: Jan 25, 2005
Posts: 78
<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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing LDAP Registry using Java API