Perform a search on the LDAP directory with the following command:
ldapsearch -b "dc=example,dc=org" -W -D "cn=admin, dc=example,dc=org" -xThis command will display all the entries that currently exist in the directory. You should be able to identify the admin user you have used to log on the server and all the accounts you've been creating. If this is not the case, please review the previous steps before continuing.
6. Configure AXIGEN to use the LDAP directory for authentication and routing
First configure a new LDAP Connector:
- Log into the WebAdmin interface;
- Go to the "UserDB" context;
- Click the "LDAP Connectors" tab;
- Click the "Add new ldapconn" button;
- Set the following atributes:
Name: ldap-users
Host URL: ldap://localhost:389
bindDN: cn=admin,dc=example,dc=org
bindPass: <your_LDAP_password>
searchBase: dc=example,dc=org
searchPattern: mail=%e
passwordField: userPassword
axigenHostField: mailHost

- Click the "Add" button;
- Click the "Commit" button;
- Click the "Save Config" button;
- In the "Server" context, click the "User Maps" tab;
- Click the "Add new map" button;

- In the "Name" field enter: "LDAP-Auth";
- Make sure the type of the map is "ldap";
- Local file should be blank because we do not use one;
- userdbConnectorType: ldap;
- Set the user map to the one we defined before: userdbConnectorName: ldap-users;
- Click the "Add" button;
- Click the "Commit" button;
- Click the "Save Config" button.
- Log into the WebAdmin interface;
- Go to the IMAP context;
- Select "ldap" in the "User dB connector type" section;
- Set the "userdbConnectorName" to "ldap-users";
- Click the "Add" button;
- Click the "Commit" button;
- Click the "Save Config" button.


