LDAP Server Installation on Linux
To install LDAP server on Linux, do the following:
-
Stop the Control service (System > Services > LDAP > right-click Stop Module 'Control')
-
Rename folder of c:\Program Files\IceWarp\ldap\data to c:\Program Files\IceWarp\ldap\data.bak
-
Create a new folder - c:\Program Files\IceWarp\ldap\data
-
Edit the c:\Program Files\IceWarp\ldap\slapd.conf file and change the "# ldbm database definitions" section like this:
atabase bdb
suffix "o=testes.icewarp.com.br"
rootdn "cn=Manager,o=testes.icewarp.com.br"
rootpw put-your-password-here
# The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd/tools. Mode 700 recommended.
#directory %LOCALSTATEDIR%/openldap-ldbm
# Indices to maintain
index objectClass eq
# The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory ./data
-
Within the System > Services > LDAP dialog > Properties tab, enter the port number for LDAP (389 by default, if 389 is used (by AD for example), choose an another port).
-
Start the Control service (System > Services > LDAP > right-click Start Module 'Control').
-
Create a new file - c:\Program Files\IceWarp\ldap\create-custom.ldif with the following content:
o=testes.icewarp.com.br
objectClass: organization
o: testes.icewarp.com.br
description: test
dn: cn=Manager, o=testes.icewarp.com.br
objectclass: organizationalRole
cn: Manager
description: Directory Manager
dn: ou=users, o=testes.icewarp.com.br
ou: users
objectClass: organizationalunit
objectClass: top
dn: ou=groupes, o=testes.icewarp.com.br
ou: groupes
objectClass: organizationalunit
objectClass: top
-
Add the nodes declared in custom-create.ldif:
(ldapadd.exe is in the c:\Program Files\IceWarp\ldap directory.)
This command will output:
-
Check contents of LDAP:
--> it should list four entries.
-
Configure Domains & Accounts > Global Settings > Advanced:
-
On the Domains & Accounts > Global settings > Advanced tab, click the Synchronize All Users... button
-
Check the result, use either the tool.exe file or the command line:
--> it should list all 'user' accounts on the server