Re: Problem in Change Password !
- From: "Joe Kaplan \(MVP - ADSI\)" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 13 Jun 2006 10:04:33 -0400
I did not say to bind with admin credentials, I said to bind with the user's
credentials, using the password they supplied as the old password. Admins
do not change people's passwords, they reset them (without knowing the old
password).
It is possible to do what you are trying to do. As I suggested, the
material in my book, including the freely downloadable ch 10 from my
website, will provide a lot more details here.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<k.karthikit@xxxxxxxxx> wrote in message
news:1150182140.150425.22690@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Thanks for your reply.I tried to bind AD using administrator
credentials as you told....but still it throws the same
exception.......
DirectoryEntry de = new DirectoryEntry("LDAP://CN=" + userName +
",CN=Users,DC=192.168.2.34","administrator","pwd",AuthenticationTypes.Secure);
de.Invoke("ChangePassword", new object[]{oldPassword,
newPassword});
de.CommitChanges();
I also tried by changing the password in my development server(this is
worked when i used the sharepoint site in the same server) from another
server.....that also not working....
My query is, Is it possible to change the password in AD from one
server to another.....
Please help me to tackle this problem.......!
Thanks,
karthick
.
- Follow-Ups:
- Re: Problem in Change Password !
- From: k . karthikit
- Re: Problem in Change Password !
- References:
- Problem in Change Password !
- From: k . karthikit
- Re: Problem in Change Password !
- From: Joe Kaplan \(MVP - ADSI\)
- Re: Problem in Change Password !
- From: k . karthikit
- Problem in Change Password !
- Prev by Date: Re: Domain Controllers
- Next by Date: Re: ADAM Replication Problems
- Previous by thread: Re: Problem in Change Password !
- Next by thread: Re: Problem in Change Password !
- Index(es):
Relevant Pages
|