Title: LDAP Query Question

I would be using ADFIND… but unfortunately this is for an application that requires LDAP query strings… I just got softerra ldap browser yesterday… I must be encountering a steep learning curve.  I haven’t felt this dumb for awhile…  J

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Monday, April 19, 2004 4:20 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP Query Question

 

I use adfind and ADU&C for my LDAP testing. Easier than LDP! :-)

 

Another program I've found very useful is Softerra LDAP Browser (free).

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, April 19, 2004 4:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] 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