Solved

LDAP Filtering with HP LaserJet 500

Posted on 2014-02-12
7
494 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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:hdhondt
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

[b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

813 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

17 Experts available now in Live!

Get 1:1 Help Now