I don't frequent this mailing list these days as I put most of my efforts
into answering questions on the support forum for my book's website at
http://directoryprogramming.net. I officially invite anyone participating
on this list to also participate there.
That said, we have a code sample for doing exactly this from ch 10 of the
book. You can get ch 10 online in PDF format from a link on the main page
of our site and you can download all the code samples from the book from the
files section. I believe the complete version of our wrapper class is only
in the "complete samples" download and not the raw samples.
Additionally, some other forum partipants have suggested a few enhancements
over time that you can search for and borrow from the forum.
Note that password policy is much more complex in server 2008 AD because
fine grained password policies are supported. There is no longer the
limitation of just one policy per domain.
Cheers!
Joe K.
----- Original Message -----
From: Bret H
To: ADSIANDDirectoryServices@yahoogroups.com
Sent: Tuesday, January 27, 2009 9:34 AM
Subject: Re: [ADSI-DirSrv] Re: Domain password policy using C#'
for any system ,you can view the domain password and account lockout
policy..you can view it by typing gpedit.msc in the run prompt.then you can
view the values from windows settings\security settings\account policies.My
aim is to fetch these values for a particular domain using C# .net windows
application and also edit the same.i will have the administrator rights to
do the same.So , i hope you got my point.i want to fetch the values and edit
the same.please help with the classes for the above.
--- On Thu, 1/22/09, mneale1 <mneale1@...> wrote:
From: mneale1 <mneale1@...>
Subject: [ADSI-DirSrv] Re: Domain password policy using C#'
To: ADSIANDDirectoryServices@yahoogroups.com
Date: Thursday, January 22, 2009, 7:09 PM
breth82 - Are you certain that you can get and set the password? It
is a hashed value that is hashed by the domain controler as the
accounts are updated/created, I think.
In the past when I have looked at this I do not think that I could
even see the hashed value.
M.
--- In ADSIANDDirectorySer vices@yahoogroup s.com, "breth82"
<breth82@... > wrote:
>
> Hi
> i tried System.DirectorySer vices,
> System.DirectorySer vices.ActiveDire ctory . but i am not able to
get
> the exact class that is used to view and edit (in other words: get
and
> set) the domain password and account lockout policy.Can you please
> provide me with the class. its urgent.
>
>
>
>
>
> --- In ADSIANDDirectorySer vices@yahoogroup s.com, "mcdragon69"
> <mcdragon69@ > wrote:
> >
> > Have you tried System.DirectorySer vices,
> > System.DirectorySer vices.ActiveDire ctory
> >
> > --- In ADSIANDDirectorySer vices@yahoogroup s.com, "breth82"
> > <breth82@> wrote:
> > >
> > > hi all
> > > what are the C# classes used to get/set domain wide password
policy
> > > and account lockout policy.how do i view the values for the
same using
> > > C#.net .please reply asap.
> > >
> >
>
[Non-text portions of this message have been removed]