how to specify that user doesnt have email in AD via LDAP

Hello,

Pls advice how can i specify that user doesnt have email(is not mail enabled).

"(&(objectCategory=person)(objectClass=user)(!mail =*)(sAMAccountName=xx*))"

I tried a few combinations like: (!email =*) , !(mail =*) etc..

But actually nothing works, exchange 2003.

Many thanks
Radim88Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
soostibiConnect With a Mentor Commented:
It works without the space between the mail and the =.

"(&(objectCategory=person)(objectClass=user)(!mail=*)(sAMAccountName=xx*))"

0
 
Radim88Author Commented:
thx :-)
0
All Courses

From novice to tech pro — start learning today.