M
Marek Kopanski
Hallo,
I have to change a user password in my ASP.NET project.
In the first step I was trying to change my own passwort (as example) in
Active Directory on my Server, but already at this point I get problems.
Can somebody help me?
1. I use following fragment of code:
-----------------------------------
DirectoryEntry DirEntry;
DirEntry = new DirectoryEntry(@"WinNT://XXX-DOMAIN","MyName","MyPassword");
DirEntry.Invoke("setPassword", "testtest");
@"WinNT://XXX-DOMAIN"," is the name of the Server
2. Error
--------------------------------
The line:
DirEntry.Invoke("setPassword", "testtest");
fires an error:
System.Runtime.InteropServices.COMException: unknown name.
Can somebody tell me, what I am doing wrong?
Greetings
Marek
I have to change a user password in my ASP.NET project.
In the first step I was trying to change my own passwort (as example) in
Active Directory on my Server, but already at this point I get problems.
Can somebody help me?
1. I use following fragment of code:
-----------------------------------
DirectoryEntry DirEntry;
DirEntry = new DirectoryEntry(@"WinNT://XXX-DOMAIN","MyName","MyPassword");
DirEntry.Invoke("setPassword", "testtest");
@"WinNT://XXX-DOMAIN"," is the name of the Server
2. Error
--------------------------------
The line:
DirEntry.Invoke("setPassword", "testtest");
fires an error:
System.Runtime.InteropServices.COMException: unknown name.
Can somebody tell me, what I am doing wrong?
Greetings
Marek