Location: Mail List

Ads

Skyscraper

The GPTalk Mailing List

The GPTALK mailing list is where you can send and receive email related to Windows Group Policy. You must subscribe to the list to send and receive mail from the list. The purpose of the list is to provide a forum for asking and answering technical questions related to Group Policy. Any question is fair game as long as it is related to Windows Group Policy.  The Archives for this list can be found on this page.

 

List Posts

Subject: [gptalk] Ldap Query
Prev Next
You are not authorized to post a reply.

AuthorMessages
RobertMarianiUser is Offline

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


florianUser is Offline

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 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
JamieNelsonUser is Offline

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.

RobertMarianiUser is Offline

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.



You are not authorized to post a reply.
Forums >GPTalk >GPTalk Mailing List > [gptalk] Ldap Query



ActiveForums 3.7

Members

MembershipMembership:
Latest New UserLatest:carmicklec
New TodayNew Today:0
New YesterdayNew Yesterday:0
User CountOverall:1399

People OnlinePeople Online:
VisitorsVisitors:0
MembersMembers:0
TotalTotal:0

Online NowOnline Now:

Ads

Banner Inv
Copyright 2009 by GPOGUY.COM
Terms Of Use