Anonymous_User Absent Member.
Absent Member.
265 views

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?


--
ronnieoverby
------------------------------------------------------------------------
ronnieoverby's Profile: http://forums.novell.com/member.php?userid=32561
View this thread: http://forums.novell.com/showthread.php?t=389101

Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: how to change ldap password from .net


We also are using Universal Password.


--
ronnieoverby
------------------------------------------------------------------------
ronnieoverby's Profile: http://forums.novell.com/member.php?userid=32561
View this thread: http://forums.novell.com/showthread.php?t=389101

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: how to change ldap password from .net

Start here:
http://forge.novell.com/modules/xfmod/project/?ldapcsharp
-jim

On 10/16/2009 9:46 AM, ronnieoverby wrote:
>
> We also are using Universal Password.
>
>

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.