I am running the following against an Active Directory server.

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

I am trying to return only objects for which the mail attribute is defined. I think my search is incorrect, and I am searching for the mail attribute being null.

Any suggestions would be greatly appreciated.



freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to