Skip to Content

Zimbra environment variable usage

Posted in

Release 5.0.9_GA_2533.UBUNTU6 UBUNTU6 NETWORK edition

You are becoming a more esteemed Zimbra admin, but are tired of manually fetching environment variables from zmlocalconfig. Simply put the values into your shell environment.

su - zimbra
source ~/bin/zmshutil
zmsetvars

Now you can run your ldapsearch command like this:
ldapsearch -x -H $ldap_master_url -D $zimbra_ldap_userdn -w $zimbra_ldap_password "(cn=*)"