Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I'm searching for a function to ask the user for a new password and replace this one in the Active Directory.
We have a local AD domain, and the users for the moment doesn't have the possibility to reset their user password.
I want to change this and make things working for everyone.
( I can admit to put my Admin User & Password in the script to give access to the AD naturally )

What I have tried:

I followed all the script on this page of your website :

Working with Active Directory in VB.NET[^]

This one is not proposing the function I'm looking for.
I also "Google it" but I'm not able to find what I want unfortunately :(

If someone can help me, it will save my life !

Thanks in advance
Posted
Comments
Alek Massey 21-Dec-18 11:23am    
from Working with Active Directory in VB.NET[^]

'' <summary>
''' Method to set a user's password
''' <param name="dEntry">DirectoryEntry to use
''' <param name="sPassword">Password for the new user
Private Shared Sub SetPassword(ByVal dEntry As DirectoryEntry, _
ByVal sPassword As String)
Dim oPassword As Object() = New Object() {sPassword}
Dim ret As Object = dEntry.Invoke("SetPassword", oPassword)
dEntry.CommitChanges()
End Sub

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900