Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


CFLDAP filter for NULL value

CFLDAP filter for NULL value

CFLDAP filter for NULL value

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:

RE: CFLDAP filter for NULL value

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:


filter="mail IS NOT NULL"


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 Technologies

"My work is a game, a very serious game." - M.C. Escher

RE: CFLDAP filter for NULL value

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close