| Author | Messages | |
RobertMariani
Posts:38
 | | 03/26/2009 11:34 PM |
| Hi All,
I am having a bit of trouble getting an ldap query to work with Item Level Targeting.
I would like to set the default printer for all users based on a what property is in the ZIP/PostCode field in the AD.
In the targeting editor I have the following as attached and tried may variants but can't get it to happen.
If anyone could help me out with the Filter, Binding and Attribute fields it would be much appreciated.
TIA
Regards,
Robert Mariani Applications Manager
-- The Buchan Group, Melbourne
| | | |
| florian
Posts:20
 | | 03/27/2009 2:02 AM |
| Robert,
You may want to try to use (objectCategory=person) together with (objectClass=user)- that sould return your users.
Have tested the query with adfind or ldp and checked whether it actually returns a value there?
Cheers, Florian
-----Original Message----- From: Robert Mariani <xxxxxxxxxxxxxxxx> Sent: Freitag, 27. März 2009 04:28 To: xxxxxxxxxxxxxxxx Subject: [gptalk] Ldap Query
Hi All, I am having a bit of trouble getting an ldap query to work with Item Level Targeting.
I would like to set the default printer for all users based on a what property is in the ZIP/PostCode field in the AD.
In the targeting editor I have the following as attached and tried may variants but cant get it to happen.
If anyone could help me out with the Filter, Binding and Attribute fields it would be much appreciated.
TIA Regards,
Robert Mariani Applications Manager
-- The Buchan Group, Melbourne
| | | |
| JamieNelson
Posts:0
 | | 03/27/2009 10:42 AM |
| What you had won't work because the postalCode attribute is not associated with the base "user" category. That attribute's source class is actually organizationalPerson which falls under "person".
Try this instead and it should work for you. J
Filter: (&(objectCategory=person)(objectClass=user)(postalCode=level2East))
Binding: LDAP://OU=TestOU,DC=contoso,DC=com
Attribute: Empty
Jamie Nelson | Lead Analyst | BI&T Desktop Management | Devon Energy Corporation | Work: 405.552.8054 | Mobile: 405.200.8088 | http://www.dvn.com <http://www.dvn.com/>
From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Robert Mariani Sent: Thursday, March 26, 2009 10:29 PM To: xxxxxxxxxxxxxxxx Subject: [gptalk] Ldap Query
Hi All,
I am having a bit of trouble getting an ldap query to work with Item Level Targeting.
I would like to set the default printer for all users based on a what property is in the ZIP/PostCode field in the AD.
In the targeting editor I have the following as attached and tried may variants but can't get it to happen.
If anyone could help me out with the Filter, Binding and Attribute fields it would be much appreciated.
TIA
Regards,
Robert Mariani Applications Manager
-- The Buchan Group, Melbourne
Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, retransmission, conversion to hard copy, copying, circulation or other use of all or any portion of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, and delete this message and any attachments from your system.
| | | |
| RobertMariani
Posts:38
 | | 03/27/2009 9:11 PM |
| Hi Jamie. Thanks for the pointer I will give it a spin on Monday.
I did get the structure of the original query from saved queries in aduc which returned the correct results. Weired!
Regards,
Robert Mariani Applications Manager
-- The Buchan Group, Melbourne Architecture+Master Planning+Interiors+Graphics A 133 Rosslyn St West Melbourne Vic 3003 Australia GPO Box 4584 Melbourne Vic 3001 Australia T +61 3 9329 1077 | F +61 3 9329 0481 | W www.buchan.com.au
This message is transmitted subject to our email policies and may only be relied on by an authorised recipient. Click on this link to view the policies: http://www.buchan.com.au/policies.htm
________________________________
From: xxxxxxxxxxxxxxxx <xxxxxxxxxxxxxxxx> To: xxxxxxxxxxxxxxxx <xxxxxxxxxxxxxxxx> Sent: Sat Mar 28 01:36:47 2009 Subject: RE: [gptalk] Ldap Query
What you had won’t work because the postalCode attribute is not associated with the base “user” category. That attribute’s source class is actually organizationalPerson which falls under “person”.
Try this instead and it should work for you. J
Filter: (&(objectCategory=person)(objectClass=user)(postalCode=level2East))
Binding: LDAP://OU=TestOU,DC=contoso,DC=com
Attribute: Empty
Jamie Nelson | Lead Analyst | BI&T Desktop Management | Devon Energy Corporation | Work: 405.552.8054 | Mobile: 405.200.8088 | http://www.dvn.com <http://www.dvn.com/>
From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Robert Mariani Sent: Thursday, March 26, 2009 10:29 PM To: xxxxxxxxxxxxxxxx Subject: [gptalk] Ldap Query
Hi All,
I am having a bit of trouble getting an ldap query to work with Item Level Targeting.
I would like to set the default printer for all users based on a what property is in the ZIP/PostCode field in the AD.
In the targeting editor I have the following as attached and tried may variants but can’t get it to happen.
If anyone could help me out with the Filter, Binding and Attribute fields it would be much appreciated.
TIA
Regards,
Robert Mariani Applications Manager
-- The Buchan Group, Melbourne
________________________________
Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, retransmission, conversion to hard copy, copying, circulation or other use of all or any portion of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, and delete this message and any attachments from your system.
| | | |
|
|