Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ADSI - User A/c Info Question

Reply
Thread Tools

ADSI - User A/c Info Question

 
 
shiv
Guest
Posts: n/a
 
      11-14-2003
Hi all

I need to to know whether a User Account is Enabled or
Disabled through ADSI. Kindly share a code snippet in c#
which can do the same.

I would also want to see the Properties of the User in
order to check the password policy,expiry date etc. whats
the best way to do that?

thanks in advance
regrds
shiv

 
Reply With Quote
 
 
 
 
Natty Gur
Guest
Posts: n/a
 
      11-16-2003
Hi,

you can use DirectorySearcher.FindOne().
Refer to the following article :
www.codeguru.com/cs_network/AccessDirServ.html

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
validate user and go to ok page adsi ldap sal21 ASP General 0 01-23-2008 02:00 AM
ADSI - Trying to enable a user - the user add works very well Jeremie Legault ASP General 0 11-23-2005 09:15 PM
User login with ADSI Kenneth Keeley ASP .Net Security 2 12-29-2003 12:07 AM
User login with ADSI Kenneth Keeley ASP .Net 0 12-15-2003 06:33 AM
Retrieve logon user name from ADSI venkat ASP .Net 0 11-06-2003 06:41 AM



Advertisments