jQuery in Action, 2nd edition*
The moose likes Security and the fly likes Change Ldap Password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Change Ldap Password" Watch "Change Ldap Password" New topic
Author

Change Ldap Password

Anthonio Booysen
Greenhorn

Joined: Oct 27, 2008
Posts: 10
Hi
This is my first question since joinging this site. and was advise by a friend to use this site.

I have question. But first I must say that I test my Ldap connection and I could search for username on Ldap. I now want to changes a userName's password and I am getting the following Errors

Problem resetting password: javax.naming.NamingException: [LDAP: error code 1 - 000020D6: SvcErr: DSID-031006CC, problem 5012 (DIR_ERROR), data 0
remaining name 'CN=userName'. I have established a connection but now wat to change a username in ldap.

I have attached my setpass code


Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Thank you for posting and welcome to JavaRanch

Unfortunately that question is too difficult for beginners, so I shall move it.
Anthonio Booysen
Greenhorn

Joined: Oct 27, 2008
Posts: 10
Hi

I have made changes to the code and it gave me no errors, but the message on the result page says

>>>CN=Username Surname,OU=Users,OU=Information Technology,OU=Africa Central Office
[Ljavax.naming.directory.ModificationItem;@1a5ab41
Reset Password for: CN=Username Surname

but attrs = BasicAttributes says that there are No attributes


Huong NguyenB
Greenhorn

Joined: May 25, 2011
Posts: 2
I've encounted the same problem, please help us to solve it.
Many thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Change Ldap Password
 
Similar Threads
Password Change on Ldap keep on failing
Help to solve reset User LDAP problem
Error occured while modifying "pwdLastSet" attribute in Active Directory
LDAP on websphere app server 7 problem
LDAP AD - Autentication SSL