[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 607
  • Last Modified:

LDAP Query Blank

Hi Guys,

I am attempting to run an LDAP query the below query works but I would like to find profile paths which are blank what syntax should I be using?

(&(objectClass=user)(scriptPath=logmein.bat))

I would like to change to:

(&(objectClass=user)(scriptPath=????))

SEARCH FOR SCRIPT PATHS WITH NO DATA
0
Raheem05
Asked:
Raheem05
  • 2
  • 2
2 Solutions
 
Dustin HopkinsCommented:
It should be:
(&(objectClass=user)(!scriptPath=*))
0
 
Raheem05Author Commented:
Hi Dusion,

I have been fiddling with this all day and managed to do the above BUT it also querys computers too which beats the object of querying users any ideas why computers are also showing on this query?
0
 
Dustin HopkinsCommented:
Yes you need to add another filter.
(&(objectCategory=person)(objectClass=user)(!scriptPath=*))
0
 
Raheem05Author Commented:
thanks Dusion!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now