How to find account disabled in AD??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
Any one??

David C. Barber said:
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.
 
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.
 
Back
Top