Eqbal, The user object has an attribute
UserAccountControl has flags that can be tested or set: UF_TEMP_DUPLICATE_ACCOUNT 0x0100, UF_NORMAL_ACCOUNT 0x0200, UF_INTERDOMAIN_TRUST_ACCOUNT 0x0800, UF_WORKSTATION_TRUST_ACCOUNT 0x1000, UF_SERVER_TRUST_ACCOUNT 0x2000, UF_DONT_EXPIRE_PASSWD 0x10000, UF_SCRIPT 0x0001, UF_ACCOUNTDISABLE 0x0002, UF_HOMEDIR_REQUIRED 0x0008, UF_LOCKOUT 0x0010, UF_PASSWD_NOTREQD 0x0020, UF_PASSWD_CANT_CHANGE 0x0040 Here are some Microsoft References also. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsc hema/w2k/DN_user.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsc hema/w2k/A_userAccountControl.asp MGP ----- Original Message ----- From: "pio eqbal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 12:30 PM Subject: [ActiveDir] which attribute to use for disabled account > Hi, > > is there an attribute in the user class, that I can > use in the LDAP query to find if the user account is > disabled? If so what is the name of the attribute? > > Thanks > Eqbal > > __________________________________________________ > Do you Yahoo!? > HotJobs - Search new jobs daily now > http://hotjobs.yahoo.com/ > List info : http://www.activedir.org/mail_list.htm > List FAQ : http://www.activedir.org/list_faq.htm > List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ > > VIRUS FREE SMTP! > MarinaOne > > VIRUS FREE SMTP! MarinaOne List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/