Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 22:04:50 -0600
From:      Jay Hall <>
To:        Olivier Nicole <>
Subject:   Re: ldapsearch question
Message-ID:  <>
In-Reply-To: <>
References:  <> <>

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 -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?



Want to link to this message? Use this URL: <>