Re: Problem in Change Password !



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



.



Relevant Pages

  • RE: Re: ssh connection to an ldap server
    ... I am able to connect to my LDAP server. ... > # The distinguished name to bind to the server with. ... > # The credentials to bind with. ... Créez votre Yahoo! ...
    (SSH)
  • Re: Problem in Change Password !
    ... Thanks for your reply.I tried to bind AD using administrator ... credentials as you told....but still it throws the same ... server to another..... ...
    (microsoft.public.windows.server.active_directory)
  • Re: "net use" on domains
    ... >>it uses the admin credentials? ... > Net use needs to specify a server & a share. ... > credentials along for a share on a server, it should use the same cached ...
    (microsoft.public.win2000.networking)
  • Re: "net use" on domains
    ... > So that whenever I access a machine on that is part of 'my-domainname' ... > it uses the admin credentials? ... Net use needs to specify a server & a share. ... credentials along for a share on a server, it should use the same cached ...
    (microsoft.public.win2000.networking)
  • Re: LDIFDE Error when trying to change passwords.
    ... The SASL bind (with -b and specific credentials) is only needed if you don't ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)