Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple LDAP Query - no pun intended

Status
Not open for further replies.

nickhills

Programmer
Oct 18, 2001
34
GB
Hi guys, just a quickie hopefully....

I'm new to LDAP queries, and am far more versed in SQL but i have the following LDAP query:

<LDAP://DC=ourdomain,DC=co,DC=uk>;(objectClass=person);sn,givenNmae,mail,samAccountName,title,department,telephoneNumber;subtree

what i want to do is stick "WHERE mail=!null" or similar on the end,

if anyone can give me a clue of the correct syntax, or a good place to look i'd be most greatful

thanks for reading this,

Nick
 
Do this instead.
[tt] <LDAP://DC=ourdomain,DC=co,DC=uk>;[blue](&(objectClass=person)(mail=*))[/blue];sn,givenNmae,mail,samAccountName,title,department,telephoneNumber;subtree[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top