Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

How to find account disabled in AD??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DotNetDev - 17 Sep 2007 20:27 GMT
Hi,

I have been struggling to find if an account is disabled in AD.

I looked at a few examples, but didn't work for me.

I'm using .net 1.1 with AD on W2003 server.

Thanks.
David C. Barber - 18 Sep 2007 06:00 GMT
There's a status word and you have to check the account disabled bit in it.
I've done this, but I don't have access to my code at the moment.  I'll see
if I can remember to get it tomorrow when I'm on my development system.

> Hi,
>
[quoted text clipped - 5 lines]
>
> Thanks.
DotNetDev - 19 Sep 2007 20:26 GMT
Any one??

> There's a status word and you have to check the account disabled bit in it.
> I've done this, but I don't have access to my code at the moment.  I'll see
[quoted text clipped - 9 lines]
> >
> > Thanks.
David C. Barber - 14 Oct 2007 03:21 GMT
The way to check for a disabled user in ActiveDirectory is to retrieve the
field "userAccountControl" and test bit &H2.  If that bit is set, then the
account has been disabled.  Sorry to take so long to get this information to
you.

> Any one??
>
[quoted text clipped - 11 lines]
> > >
> > > Thanks.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.