Solved

LDAP Filtering with HP LaserJet 500

Posted on 2014-02-12
7
487 Views
Last Modified: 2014-03-23
So, I'm attempting to use an LDAP filter to filter out addresses that have "hide from exchange address lists" checked, because it seems the printer doesn't do this by default. I have thus far composed two queries. The first is
 
(&(&(&(objectClass=group)(!(groupType:1.2.840.113556.1.4.803:=2147483648)))(!(MSExchHideFromAddressLists=TRUE))))
 
This one works fine in my active directory environment and when I enter it into the printer. The second query is this:
 
(&(objectClass=user)(objectCategory=Person)(!msExchHideFromAddressLists=TRUE))
 
This one works fine in my active directory environment, but does not work when I enter it into the printer. I plan to ultimately combine these two queries, like so:
 
(|(&(&(&(objectClass=group)(!(groupType:1.2.840.113556.1.4.803:=2147483648)))(!(MSExchHideFromAddressLists=TRUE))))(&(objectClass=user)(objectCategory=Person)(!msExchHideFromAddressLists=TRUE)))
 
This query works fine in active directory as well, but will not work in the printer. I need to figure out why the printer won't take these queries.
0
Comment
Question by:ahahum
  • 3
  • 2
7 Comments
 
LVL 57

Expert Comment

by:Mike Kline
ID: 39854465
Does a basic

(&(objectClass=user)(objectCategory=Person)) work for all users?  I'm talking about in the printer.

Do they use the same syntax as you are using in ADUC?

Thanks

Mike
0
 

Author Comment

by:ahahum
ID: 39854474
Yes, basic queries work ok. As far as I know, it uses standard LDAP query syntax, but it's possible there's something a bit different that I'm unaware of. I haven't been able to find any info online about how the printers treat LDAP queries, so I'm kind of shooting in the dark.
0
 

Author Comment

by:ahahum
ID: 39859038
This one apparently isn't an easy one. I was hoping someone out there had a bit of experience with LDAP queries on these printers.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 57

Expert Comment

by:Mike Kline
ID: 39859048
I wish I could help more but don't have a printer to test with so I don't want to make up the answer.
0
 

Accepted Solution

by:
ahahum earned 0 total points
ID: 39871219
To update everyone, I've basically figured out a workaround/solution. It seems the printer doesn't like the (!msExchHideFromAddressLists=TRUE)) portion of the query when applied to users. It works for groups. Since the original issue came to my attention because a user selected a hidden group in the printer, I've applied this filter:

(|(&(&(&(objectClass=group)(!(groupType:1.2.840.113556.1.4.803:=2147483648)))(!(MSExchHideFromAddressLists=TRUE))))(&(objectClass=user)(objectCategory=Person)))

This works. I'd still like to know why it won't let me filter users that are supposed to be hidden, but at least I've got the groups fixed.
0
 
LVL 38

Expert Comment

by:Herman D'Hondt
ID: 39948381
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I'm sure that every Windows systems administrator has written, or at least used, a batch or VBS login script at some point in their career, whether it is to map network drives, install printers, or set some user preferences.  No more! With Window…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now