Rocky 8.x Zimbra Connect to Zimbra internal LDAP externally
From Notes_Wiki
Revision as of 07:45, 7 May 2023 by Saurabh (talk | contribs) (Created page with "Home > Rocky Linux or CentOS > Rocky Linux 8.x > Email servers > Zimbra > Connect to Zimbra internal LDAP externally To connect to Zimbra LDAP externally: # Enable access to server via network firewall (OR Cloud firewall) # Enable access to port 389 of Zimbra server via firewalld: #:<pre> #:: firewall-cmd --zone=public --ad...")
Home > Rocky Linux or CentOS > Rocky Linux 8.x > Email servers > Zimbra > Connect to Zimbra internal LDAP externally
To connect to Zimbra LDAP externally:
- Enable access to server via network firewall (OR Cloud firewall)
- Enable access to port 389 of Zimbra server via firewalld:
- firewall-cmd --zone=public --add-port=389/tcp --permanent
- firewall-cmd --reload
- Then test connectivity to Zimbra LDAP via:
- ldapsearch -x -h <email-server-fqdn-or-ip>:389 -b 'dc=example,dc=com' -D 'uid=saurabh,ou=people,dc=example,dc=com' -W dn,mail
- In above replace username saurabh and domain example.com appropriately. Zimbra LDAP will require authentication for the DN specified with -D, without which it does not responds to ldap queries
- In case of confusion on Zimbra LDAP structure we can use:
- su - zimbra
- /opt/zimbra/libexec/zmslapcat -c /tmp
- vim /tmp/ldap.bak
- For filters while connecting to Zimbra. See
Home > Rocky Linux or CentOS > Rocky Linux 8.x > Email servers > Zimbra > Connect to Zimbra internal LDAP externally