Solved

LDAP Query Blank

Posted on 2009-03-31
4
584 Views
Last Modified: 2013-12-24
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
Comment
Question by:Raheem05
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Dustin Hopkins
ID: 24032204
It should be:
(&(objectClass=user)(!scriptPath=*))
0
 
LVL 16

Author Comment

by:Raheem05
ID: 24032383
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
 
LVL 14

Assisted Solution

by:Dustin Hopkins
Dustin Hopkins earned 500 total points
ID: 24032470
Yes you need to add another filter.
(&(objectCategory=person)(objectClass=user)(!scriptPath=*))
0
 
LVL 16

Accepted Solution

by:
Raheem05 earned 0 total points
ID: 24032477
thanks Dusion!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

828 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