RE: [ActiveDir] which attribute to use for disabled account

2002-11-07 Thread Tony Murray
Or if you're just looking for the ldap search filter syntax, try:

((objectCategory=Person)(userAccountControl:1.2.840.113556.1.4.803:=2))

This uses a bitwise filter.  For further details have a look at

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q269181;

Tony

-- Original Message --
From: Sullivan, Kevin [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Wed, 6 Nov 2002 21:08:06 -0500

How about this...


Option Explicit

Dim objUser
Dim objAccountDisabled

Set objUser = GetObject(LDAP://CN=User,DC=Domain,DC=MSFT;)

If objUser.AccountDisabled = True Then
  objAccountDisabled = Yes
  Else objAccountDisabled = No
End If

WScript.Echo objAccountDisabled
**

-Original Message-
From: pio eqbal [mailto:eqbalpio;yahoo.com] 
Sent: Wednesday, November 06, 2002 12:30 PM
To: [EMAIL PROTECTED]
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/
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/

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/



Re: [ActiveDir] which attribute to use for disabled account

2002-11-06 Thread Al Lilianstrom
pio eqbal wrote:
 
 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?
 

Look at userAccountcontrol.

al

-- 

Al Lilianstrom
CD/OSS/CSI
[EMAIL PROTECTED]
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/



RE: [ActiveDir] which attribute to use for disabled account

2002-11-06 Thread Sullivan, Kevin
How about this...


Option Explicit

Dim objUser
Dim objAccountDisabled

Set objUser = GetObject(LDAP://CN=User,DC=Domain,DC=MSFT;)

If objUser.AccountDisabled = True Then
  objAccountDisabled = Yes
  Else objAccountDisabled = No
End If

WScript.Echo objAccountDisabled
**

-Original Message-
From: pio eqbal [mailto:eqbalpio;yahoo.com] 
Sent: Wednesday, November 06, 2002 12:30 PM
To: [EMAIL PROTECTED]
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/
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/