Translations of this page?:

LDAP Authentication


We will take it for granted that you already know how to install and set up an LDAP server and a client, so we will skip this process.

The extensions you will need are:

  • php5-ldap
  • authnz_ldap

Remember to restart or reload your Apache settings after installing them.

Feng Office Settings

You have to edit the FENG_ROOT/config/ldap.config.example.php file so that it has the following configuration:

  // The configuration array:
  $config_ldap = array (
      'binddn'    => '', //anonymous binding, but you may change it if you wish to
      'bindpw'    => '', //anonymous binding, but you may change it if you wish to
      'basedn'    => 'ou=people,dc=my,dc=domain,dc=com',
      'host'      => 'ldap://[my domain IP]:[LdapPort]',
      'port'      => [LdapPort],
      //'password_encoding' => 'MD5', //in case the passwords are encrypted
      'uid' => 'uid', //unique id to match with the LDAP and the username

Example for with as IP and 389 as LDAP port:

  $config_ldap = array (
      'binddn'    => '',
      'bindpw'    => '',
      'basedn'    => 'ou=people,dc=my,dc=domain,dc=com',
      'host'      => 'ldap://',
      'port'      => 389,    
      'uid' => 'uid', //unique id to match with the LDAP and the username

After performing these changes, you will have to edit the FENG_ROOT/config/ldap.config.example.php so that it is called FENG_ROOT/config/ldap.config.php

Users authentication

Once everything is set up, you will be able to access Feng Office either with the authentication that Feng Office provides, or through the LDAP one.

In order to use the LDAP authentication, you must make sure that the usernames they have in Feng Office match the uid for the LDAP users, so you must bear this in mind upon creation, or otherwise edit them.

When you create them, enable the checkbox of Specify username as shown below, and type in the uid (i.e.: johnsmith2):

In case you wish to edit the username of an existing user, you must be a SuperAdministrator, and:

  1. Go to the Administration Panel
  2. Access Users
  3. Click on Update Profile of the user in question
  4. Change the username and save the changes

Turning Off the LDAP authentication

In order to turn off the authentication through LDAP, you ought to do one of the following actions:

  1. Rename the FENG_ROOT/config/config.ldap.php file to a different name (i.e.: old_config.ldap.php)
  2. Delete the FENG_ROOT/config/config.ldap.php file (not the best way to do it though)


PLEASE NOTE: Comments to the wiki should only contain suggestions and questions that help us to improve the manual (and not the software). These comments will be deleted as soon as the information has been integrated into the manual.

Posts that do not contribute to the DOCUMENTATION of the project will be DELETED.

Ask QUESTIONS on the product here.
Report BUGS here.
Propose NEW FEATURES here.

Enter your comment
ldap.txt · Last modified: 2015-01-28 13:17 by natalia.martinez
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Terms of Service | Privacy and Security policies | Copyright © 2021