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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFLDAP filter for NULL value

Status
Not open for further replies.

KevinFSI

Programmer
Nov 17, 2000
582
US
Is there an equivilant to IS NOT NULL using CFLDAP filters?
I want to return a list of LDAP entries, but I want to exclude records where there is NOT an e-mail address.

I tried:
!(mail=NULL)
!(mail=NUL)
!(mail=\00)
!(mail='')

 
I have no clue if this will work or not, I haven't fooled with LDAP in a couple of years, but have you tried:
Code:
filter="mail IS NOT NULL"

or 

filter="mail <> ''"

Unless you're returning A BUNCH of records with NULL emails, I wouldn't worry about it. Just pull back the info, then let CF sort through whether or not they're NULL.

Hope This Helps!

ECAR
ECAR Technologies

"My work is a game, a very serious game." - M.C. Escher
 
Thanks for the response. Actually, I figured out if I put FILTER="mail=*" it will ignore empty strings and nulls. So, it's a backwards way of doing it (at least I feel like it is) but it works.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top