Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

LDAP Filtering with HP LaserJet 500

Posted on 2014-02-12
7
Medium Priority
?
587 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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 39

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
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 video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

609 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