Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 22:04:50 -0600
From:      Jay Hall <jhall@socket.net>
To:        Olivier Nicole <on@cs.ait.ac.th>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ldapsearch question
Message-ID:  <9DFC15B7-CA66-4717-956D-1A761E8539AD@socket.net>
In-Reply-To: <200901190353.n0J3rwFX083175@banyan.cs.ait.ac.th>
References:  <C73DF42B-1235-4671-B9D0-FC112C4D9504@socket.net> <200901190353.n0J3rwFX083175@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 18, 2009, at 9:53 PM, Olivier Nicole wrote:
> That's right, (!(mail=*)) means everything where mail is null.
>
> You would like to search for mail=*, meaning everything where mail is
> not null.

I receive the same results using mail=*.  Following is the latest  
ldapsearch command.

ldapsearch -D "cn=admin_user,cn=users,dc=xx,dc=com" -x -w "password" - 
h 10.129.10.42 -p 3268 -b 'dc=abc,dc=com' -s sub '(! 
(objectclass=computer))' '(mail=*)' dn mail

Is it possible to search on the attribute, mail, not being present?

Thanks,


Jay



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9DFC15B7-CA66-4717-956D-1A761E8539AD>