Writing LDAP search filter

LDAP search filter is useful in Apache LDAP authentication and Ironport.

Under Ironport, I use the below filter to search for valid user with his aliase :


I use the below to search if an user/alias is in a specific posix group :


Under OpenLDAP, to search a user :

ldapsearch -x -b […]

IronPort incoming mail statistics (restricted by internal network)