Title: [ActiveDir] LDAP query struggle
Ok, so you are trying to find what users have Benjamin as a publicDelegate. That is my B scenerio I listed.
 
Do this
 
adfind -gc -b "" -f name="Benjamin Ortega" publicdelegatesBL
 
If you want more detailed info about each of the users he is a delegate for then we can look at some attribute scoped query magic (-ASQ switch).
 
  joe
 
--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Pegue
Sent: Tuesday, August 01, 2006 5:25 PM
To: [email protected]
Subject: RE: [ActiveDir] LDAP query struggle

Here's what I tried:
 
(&(objectCategory=person)(objectClass=user)(publicDelegates=Benjamin*))
 
I have a mailbox-enabled user named Benjamin Ortega.
I figured that using Benjamin* would grab the user(s) that have him set as having Send on behalf permission.
I KNOW I have users defined thus but the query returns nothing.
 
Steve Linehan mentions something about the full DN....
 
Guess I better 'fess up and say that I'm an LDAP rookie and am not sure what he means....
 
But, with some thought about it, here's what worked after I figured out the full DN of the user in question:
 
(&(objectCategory=person)(objectClass=user)(publicDelegates=CN=Benjamin Ortega,CN=Users,DC=cg-engrs,DC=com))
 
Thanks for pointing me in the right direction. Now to read joe's post....
 

Thanks
Gordon Pegue
 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge de
Sent: Tuesday, August 01, 2006 2:47 PM
To: [email protected]
Subject: RE: [ActiveDir] LDAP query struggle

instead of (objectCategory=user) use (objectCategory=person)(objectClass=user)
 
Met vriendelijke groeten / Kind regards,
Ing. Jorge de Almeida Pinto
Senior Infrastructure Consultant
MVP Windows Server - Directory Services
 
LogicaCMG Nederland B.V. (BU RTINC Eindhoven)
(   Tel     : +31-(0)40-29.57.777
(   Mobile : +31-(0)6-26.26.62.80
*   E-mail : <see sender address>


From: [EMAIL PROTECTED] on behalf of Gordon Pegue
Sent: Tue 2006-08-01 22:18
To: [email protected]
Subject: [ActiveDir] LDAP query struggle

I'd like to create an LDAP query to return a list of users
that have the "Send on behalf" field populated in the
"Exchange General / Delivery Options" properties in ADUC.

I cannot seems to make sense of the syntax of the query...

(&(objectCategory=user)(publicDelegates=<user I'm searching for>))

Is there something I'm missing or can someone provide the correct
query format to do what I need?

Thanks
Gordon Pegue
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ml/threads.aspx

Reply via email to