Re: Retriving the password programatically from Active Directory

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 02/27/04


Date: Thu, 26 Feb 2004 22:27:20 -0700


"Srikanth Pai" <anonymous@discussions.microsoft.com> wrote in message
news:299d01c3fc8c$631e3190$a101280a@phx.gbl...
>
> >-----Original Message-----
> >
> >"Srikanth Pai" <anonymous@discussions.microsoft.com>
> wrote in message
> >news:190c01c3fbf9$4c266900$a501280a@phx.gbl...
> >> Hello there,
> >>
> >> Is it possible to retrieve the password of the user
> >> stored in the Active Directory?

<snip>

> Thanks for your replies.
>
> I was trying to achieve the following, for the Forgot
> Password Page.
>
> When the user enters his email address

On our system, if you can't logon you can't do anything on the system. We
don't know who you are.

> the system would
> retrieve the pasword of the user from the active
> directory and then send the password to the user.

By e-mail? how would he get the e-mail without logging on? And, if he could,
what would keep others from sending the e-mail and getting the password
reset?

> looking at the complications involved with retriving the
> password, how about providing an option to reset the
> password?
>
> Is there a way to programatically reset the password of
> the user in the Active Directory?
>
> when I try to use ChangePassword it says "the server is
> unwilling to change the password"
>
> any pointers on this?

Use setpassword instead of changepassword.

/Al



Relevant Pages

  • ASP.NET ChangePassword error using ActiveDirectoryMembershipProvid
    ... against Active Directory and forms authentication. ... Everything works except changePassword. ... does not meet the password policy requirements. ... password complexity and password history requirements. ...
    (microsoft.public.windows.server.active_directory)
  • Re: NTFS file owners gone
    ... > I recently had to remove Active directory from a Windows ... > including domain admins. ... I can reset the permission on ... > NTFS permission? ...
    (microsoft.public.win2000.security)
  • Re: reset computer account / Restore
    ... Regards, ... Robert Abela ... > Okay sorry I didn't understand it was reset. ... we just reset the computer account from the active directory ...
    (microsoft.public.win2000.active_directory)
  • System.DirectoryServices.AccountManagement: Change existing password
    ... My question is how to I reset a users password if they have forgotten ... I was hoping that I could authenticate as a domain admin, ... PrincipalContext domainContext = new PrincipalContext ... the the ChangePassword() methods accepts two parameters ...
    (microsoft.public.dotnet.framework)
  • Re: Retriving the password programatically from Active Directory
    ... >> stored in the Active Directory? ... >> I was able to retrieve all the properties but not the ... Is there a way to programatically reset the password of ... when I try to use ChangePassword it says "the server is ...
    (microsoft.public.windows.server.scripting)