Live Chat
773 598 5800
Search Results
  • Search Results

Configuring LDAP for AXIGEN

Published on May 18, 2007

5. Make sure the LDAP directory contains the needed information:

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" -x
This 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;
New LDAP Connector 
  • 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
Configure LDAP Connector
  • Click the "Add" button;
  • Click the "Commit" button;
  • Click the "Save Config" button;
Then create a new User Map:
  • In the "Server" context, click the "User Maps" tab;
  • Click the "Add new map" button;
New UserMap
  • 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;
Configure UserMap
  • Click the "Add" button;
  • Click the "Commit" button;
  • Click the "Save Config" button.
7. Enable LDAP authentication for a specific service (IMAP in this example)
  • 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";
Configure User dB connector
  • Click the "Add" button;
  • Click the "Commit" button;
  • Click the "Save Config" button.
Important! The password set in the LDAP Directory must be used to log into the accounts when using LDAP authentication. Normally these two passwords should not differ in any way.

References & Further reading

Like this article?