:-)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Monday, April 19, 2004 2:59 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP Query Question
I've loved extra parentheses ever since I studied LISP in
1980.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cotter, Paul M.
Sent: Monday, April 19, 2004 3:56 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP Query Question
Shouldn't that be:
(&
(objectCategory=person)
(objectClass=user)
(!
(|
(samaccountname=_*)
(samaccountname=\2a*)
(samaccountname=*SMS*)
)
)
)
(Extra parentheses around the samaccountname conditionals
removed)
Paul
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Monday, April 19, 2004 2:30 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP Query Question
This is the way I wrote it.
(&
(objectCategory=person)
(objectClass=user)
(
!(
|(
(samaccountname=_*)
(samaccountname=\2a*)
(samaccountname=*SMS*)
)
)
)
)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, April 19, 2004 3:06 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] LDAP Query Question
Hey folks,
I’m trying to write an LDAP query to return the users that don’t begin with two different characters, either an underscore (_) or an asterisk (*). I’ve searched the archives… so forgive me if this is a repeat. J
(&
(objectcategory=person)
(objectclass=user)
(|
(!
(sAMAccountName=_*)
(sAMAccountName=\2a*)
(sAMAccountName=*SMS*)
)
)
)
Any suggestions? J Thanks!
=========================================================== Important: This electronic mail message and any attached files contain information intended for the exclusive use of the individual or entity to whom it is addressed and may contain information that is proprietary, privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information may be subject to legal restriction or sanction. Please notify the sender, by electronic mail or telephone, of any unintended recipients and delete the original message without making any copies. =========================================================== |
=========================================================== Important: This electronic mail message and any attached files contain information intended for the exclusive use of the individual or entity to whom it is addressed and may contain information that is proprietary, privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information may be subject to legal restriction or sanction. Please notify the sender, by electronic mail or telephone, of any unintended recipients and delete the original message without making any copies. =========================================================== |