Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*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.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

KevinFSI (Programmer) (OP)
18 Sep 06 16:07
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='')

ECAR (Programmer)
18 Sep 06 17:16
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
www.ecartech.com

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

KevinFSI (Programmer) (OP)
18 Sep 06 17:18
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.

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