Search the web
Sign In
New User? Sign Up
ADSIANDDirectoryServices · ADSI and System.DirectoryServices Q&A
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Domain password policy using C#'   Message List  
Reply | Forward Message #4600 of 4630 |
Re: [ADSI-DirSrv] Re: Domain password policy using C#'

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]







Wed Jan 28, 2009 12:02 am

joekaplan2003
Offline Offline
Send Email Send Email

Forward
Message #4600 of 4630 |
Expand Messages Author Sort by Date

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...
breth82
Offline Send Email
Jan 19, 2009
2:26 pm

Have you tried System.DirectoryServices, System.DirectoryServices.ActiveDirectory...
mcdragon69
Offline Send Email
Jan 20, 2009
2:17 am

Hi i tried System.DirectoryServices, System.DirectoryServices.ActiveDirectory . but i am not able to get the exact class that is used to view and edit (in...
breth82
Offline Send Email
Jan 22, 2009
10:58 am

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...
mneale1
Offline Send Email
Jan 22, 2009
7:09 pm

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...
Bret H
breth82
Offline Send Email
Jan 27, 2009
3:36 pm

Bret First of all sorry for making you angry. second I have not altered group policy programatically but you might look at the link below. ...
mneale1
Offline Send Email
Jan 27, 2009
10:23 pm

i just wanted to make things clear to you. don mistake me. the link which you have sent is incomplete ... From: mneale1 <mneale1@...> Subject:...
Bret H
breth82
Offline Send Email
Jan 29, 2009
10:29 am

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 ...
Joe Kaplan
joekaplan2003
Offline Send Email
Jan 28, 2009
12:02 am

The link will not work due to the inserted spaces that yohoo put into it. The link is to a discussion board with the topic of How to create Group Policy Object...
Miles Neale
mneale1
Offline Send Email
Jan 29, 2009
9:33 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help