This is part 2 of 2 article. Previous article : User Account Integration between Samba PDC & Zimbra Mail Server on openSUSE/SLES Part 1
MANAGING SAMBA DOMAIN WITH ZIMBRA ADMIN
- Restart samba service with the following command :
service smb restart
This is part 2 of 2 article. Previous article : User Account Integration between Samba PDC & Zimbra Mail Server on openSUSE/SLES Part 1

service smb restart
Note : This is part one of 2 article. I decided to split the tutorial to make it easier to read (and to write
)
This tutorial describes how you can configure Zimbra Mail Server & Collaboration Suite and Samba to act as a primary domain controller (PDC) that uses Zimbra LDAP (Lightweight Directory Access Protocol) as a central password database for authenticating users on Linux and Windows desktops. The integration process will make it easier for administrators to manage Zimbra Mail Server and Samba PDC / Active Directory account because it use same LDAP database. If applied in corporate environments or institutions who have been using Windows Server, this guide can be used to set up Linux servers to replace the Windows Active Directory Server and Microsoft Exchange Server.
The setup described in this document is not the only possible way to make Samba and Zimbra use the same user database for authentication. You may also use Zimbra External Authentication with Samba PDC. External authentication are a little bit easy to be setting up, but we must manage the mailbox profile in Zimbra and it doesn’t seamlessly integrate Zimbra into Samba PDC+OpenLDAP. It is highly recommended to get familiar with Zimbra, Samba, LDAP and PAM, before you start the installation.
This tutorial are based on Zimbra wiki article : UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI 6.0 but has been tune up to works successfully on openSUSE/SLES environment. The original wiki using Ubuntu/RedHat environment which doesn’t automatically fit with openSUSE/SLES configuration.
I’m using Zimbra Mail Server 6.0.5 64 bit with the following configuration :
Domain & Hostname
Domain : vavai.co.id Hostname : zcspdc.vavai.co.id
IP Address
IP Address : 192.168.10.1 Name Server 1 : 192.168.10.1 Name Server 2 : 8.8.8.8 (Google public DNS Server) Name Server 3 : 208.67.222.222 (OpenDNS public DNS Server) Router : 192.168.10.254 (ADSL Modem)
File /etc/hosts
127.0.0.1 localhost 192.168.10.1 zcspdc.vavai.co.id zcspdc
Please use following article to install Zimbra on SLES 11 : Installing Zimbra 6.0.5 64 bit on SUSE Linux Enterprise Server (SLES) 11 64 bit or use this tutorial : Installing Zimbra 6.0.4 on openSUSE 11.1 64 bit for Zimbra+openSUSE version.
The following script will automatically configure Zimbra LDAP as below :
Thanks to Peracchi and Lithorus on the following thread on Zimbra Forum for idea and a great script.
To run the automated script, run the following commandon console/terminal :
su cd /srv wget -c http://vavai.com/wp-content/uploads/zcs-samba.tar.gz tar -zxvf zcs-samba.tar.gz su - zimbra cd /srv/zcs-samba ./zcs-samba.sh
NOTE : The script will automatically use ‘rahasia’ (Indonesian word means ‘secret’
) as default password for zmposixroot and zmposix password. Please modify script to use your own password by change the following code on /srv/zcs-samba/zcs-samba.sh :
# set password for the posix ldap accounts ZMPOSIX_LDAP_PASSWORD=`/opt/zimbra/openldap/sbin/slappasswd -s rahasia` ZMPOSIXROOT_LDAP_PASSWORD=`/opt/zimbra/openldap/sbin/slappasswd -s rahasia` echo "Domain : $DOMAIN" echo "Hostname : $HOSTNAME" echo "Zimbra LDAP Password : $ZIMBRA_LDAP_PASSWORD" echo "LDAP Prefix : $LDAP_PREFIX" echo "ZMPOSIX_LDAP_PASSWORD : rahasia"
Change ‘rahasia’ on the above line with your own password.
include = /etc/samba/dhcp.conf
host 192.168.10.1 base dc=vavai,dc=co,dc=id binddn uid=zmposix,cn=appaccts,cn=zimbra bindpw rahasia rootbinddn uid=zmposixroot,cn=appaccts,cn=zimbra port 389 bind_policy soft nss_reconnect_tries 2 uri ldap://192.168.10.1/ ssl start_tls tls_cacertdir /opt/zimbra/conf/ca tls_checkpeer no pam_password md5 nss_base_passwd ou=people,dc=vavai,dc=co,dc=id?one nss_base_shadow ou=people,dc=vavai,dc=co,dc=id?one nss_base_group ou=groups,dc=vavai,dc=co,dc=id?one nss_base_hosts ou=machines,dc=vavai,dc=co,dc=id?one
passwd: compat group: compat
with
passwd: files ldap group: files ldap
account sufficient pam_unix.so account sufficient pam_ldap.so
auth sufficient pam_ldap.so auth sufficient pam_unix.so
password sufficient pam_unix.so password sufficient pam_ldap.so
session sufficient pam_unix.so session sufficient pam_ldap.so
Tutorial will be continue to part 2 of User Account Integration between Samba PDC & Zimbra Mail Server on openSUSE / SLES.
Previous tutorial : Samba PDC+OpenLDAP on openSUSE/SLES Part 1, Setting LDAP Server
SETTING LDAP CLIENT


