Jerry - Thanks !  Works like a charm.
Dave

-----Original Message-----
From: Jerry Welch [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 1:55 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP search filter for enabled accounts ?


Dave,
As I understand it, the following identifies a user account that is
disabled:
(userAccountControl:1.2.840.113556.1.4.803:=2)  That is, the account is
disabled when this value is set to 2.
To exclude disabled accounts you would use the following string, plus any
other filters you want to apply:
(!(userAccountControl:1.2.840.113556.1.4.803:=2))
Jerry Welch
CPS Systems

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Fugleberg, David
A
Sent: Thursday, August 14, 2003 1:59 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] LDAP search filter for enabled accounts ?


Is there anything I can use in a LDAP search filter to include only accounts
that are enabled ?  For example, a filter like
(&(objectclass=user)(objectcategory=person)(physicalDeliveryOfficeName=MSPJ)
) will find all user objects whose office is in building MSPJ - I'd like to
add an argument that limits this to user objects that meet that condition
that are enabled.

Dave
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/

Reply via email to