Synchronizing Zentyal with a Windows Active Directory Domain Controller

WARNING: This guide is for Zentyal 2.0, for Zentyal 2.2 you should use the new Zentyal Migration Tool.

This guide assumes that you already have a working Windows Domain Controller. At the moment this has been confirmed to be working under Windows 2003 and Windows 2008. We will try to have also support for Windows 2000 in the future if there is a high demand for it. Please read the Warnings section before doing any of these steps.

This guide also assumes that you have a fresh installation of Zentyal 2.0. For instructions about installing it, please read Documentation/Community/Installation/InstallationGuide. You can also use our  installer instead of the packages if you want to test it on a fresh system.

Important: If you are using the Zentyal installer, make sure you select the Advanced option instead of Standalone in the initial configuration wizard.

Setup of the Windows Server

  • Download and execute the  zentyal-adsync-2.0.1.exe on your Windows Server.
  • During the installation the configuration tool will be launched automatically, you can enter the data at this moment:
    • At the Zentyal slave host field you have to enter the IP address of your Zentyal machine.
    • At the Port field you can leave the default one or choose another.
    • As Secret key you can choose any password as long as it has 16 characters.
    • NOTE: You will need to enter the same port and secret key in the Zentyal machine as it is explained later.
    • Click on the Enable checkbox. This action would write changes to the registry instantly but it wouldn't take effect until the server is restarted.
    • Click OK and finish the installation. Don't restart the server yet as you still need to do additional steps.

Configuration dialog during installation

  • Go to Administrative Tools --> Domain Security Policy and enable the complexity requirements for passwords as you can see in the image:

Editing password policy

  • Add a user called eboxadsync (or any other name of your choice) and set a password for it. Note that this user is going to be used for LDAP binding so the relevant part is the Full Name (CN), and not the logon name. The recommendation is to leave blank the Name and Last name fields and write the same value for the Full Name and User logon name.

adding new eboxadsync user

  • Restart your Windows Server as was said by the installer.

Setup of the Zentyal slave

  • Go to Users --> Mode and fill the following data:
    • Mode: You have to select Windows AD Slave.
    • Master host: IP address of your Windows Server.

eBox users mode

  • Enable the Users and Groups module in Module Status.
  • Save changes.
  • Go to Users --> AD Sync Settings and fill the following data:
    • AD user: This will be eboxadsync unless you specified a different one.
    • AD password: The password of the eboxadsync user you created before.
    • Listen port: If you have changed the default one during the Windows configuration, you have to write the same one here.
    • AD Secret Key: The 16 characters key that you entered during the installation on Windows.

eBox AD Sync Settings

  • Allow access to port 6677 (or any other if you have changed it) in Firewall --> Packet Filter --> Internal Networks to Zentyal.
  • Save changes.

Warnings

  • The passwords for the already existing users will need to be reset in order to synchronize them.
  • The synchronization is done each 5 minutes, so be patient if you add an user in the AD and it is not available on Zentyal immediately.
  • If your users have password with special characters they may experience authentication problems with some Zentyal services. Only proxy, samba and mail seem to work well with this.

Troubleshooting

  • If you experience problems with the synchronization you should enable the debug mode and check the Zentyal log:
    • Edit the /etc/ebox/99ebox.conf file and set debug = yes.
    • Try to reproduce your problem and check the contents of /var/log/ebox/ebox.log.
  • Contact us providing as much information as you can by the different means available: Forum, IRC or mailing lists.

Attachments