|
 |
aspx_professional thread: ADSI and C#
Message #1 by "Shay Phillips" <sphillips@m...> on Thu, 15 Aug 2002 17:24:19
|
|
Shay -
If you want to change a user's password, you need to
use the 'ChangePassword' method via ADSI. However, in
order to make this work, you need to know the previous
password. I ran into this same issue and my only
workaround was to "ResetPassword" via the MMC, and
then set an new attribute on the the "User" object
class object which would then allow the user to change
their password.
One thing to remember, the .Net Framework - especially
concerning interfaces - is VERY IMMATURE!! Trust
me...been there done that...My company was just
awarded the M$ RAD Award for .Net Development and I am
a Sr. Consultant. I can't count how many times we ran
into issues with .Net where we had to identify the
problem to M$.
If you need any further info, send me a thread off
line..
Brad McLeod
--- Shay Phillips <sphillips@m...> wrote:
> I am trying to find a way to change a users password
> using
> DirectoryServices namespace. I have seen many asp
> scripts and I can
> connect to the server using ADSI but I don't see any
> methods to change
> user password on the object like in asp. Any ideas?
>
> Thanks in advance!
> Shay
> ---
>
> ASP.NET 1.0 Namespace Reference with C#
> http://www.wrox.com/acon11.asp?ISBN=1861007442
>
> ASP.NET 1.0 Namespace Reference with VB.NET
> http://www.wrox.com/acon11.asp?ISBN=1861007450
>
> These books are a complete reference to the ASP.NET
> namespaces
> for developers who are already familiar with using
> ASP.NET.
> There is no trivial introductory material or useless
> .NET
> hype and the presentation of the namespaces, in an
> easy-to use
> alphabetical order ensures a user-friendly reference
> format.
> We provide in-depth coverage of all the major
> ASP.NET classes,
> giving you those real-world tips that the
> documentation doesn't
> offer, and demonstrating complex techniques with
> simple
> examples.
>
> ---
|
|
 |