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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.