Title: LDAP Query Question

Thanks for the tip Michael.  Going to give this a try… interestingly enough, I ran what I wrote and didn’t get an error back… probably is, I can’t tell in LDP if I got the results I wanted.  J

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Monday, April 19, 2004 3: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!

Reply via email to