LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-Oct-2009, 11:02 AM
Junior Member
 
Join Date: Sep 2008
Posts: 4
ronnieoverby 0 reputation points
Default how to change ldap password from .net

We use eDirectory. I am trying to learn how to change a user's password from .net code.

I have tried the following:

Code:
DirectoryAttributeModification modifyUserPassword = new DirectoryAttributeModification();
            modifyUserPassword.Operation = DirectoryAttributeOperation.Replace;
            modifyUserPassword.Name = "userPassword";
            modifyUserPassword.Add(newPass);

            ModifyRequest modifyRequest = new ModifyRequest(userToSetPw, modifyUserPassword);
            DirectoryResponse response = connection.SendRequest(modifyRequest);
I have also tried to delete and add the attribute.

I get a "Success" response, but the password doesn't actually change. I can even see that the attribute "userPassword" contains the password that I tried to set. So, I think I may be changing the wrong attribute.

Help please?
Reply With Quote
 

Tags
.net, csharp, edirectory, ldap, password change

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 08:24 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2