I think I may have found part of the problem.
Line 165 of zmldapenablereplica:
Code:
echo HOST:${ldap_master_host} slapcat | ${zimbra_home}/bin/zmrc ${ldap_master_host} | \
grep -v STARTCMD | grep -v ENDCMD > /tmp/repl.ldif I think the problem has to do with HOST:${ldap_master_host} that is getting treated as a command line executable and choking. And I'm 99% sure that slapcat should be zmslapcat. I executed these command manually and they seemed to work the only problem was zmslapcat didn't seem to produce the correct output.