This library is intended to connect Tao to an existing user directory and was designed for Tao 3.0.

This pages describes how to use it with Tao 2.6. To use it with Tao 3.0 please follow LDAP Authentication.

The Library can be found on github:

https://github.com/oat-sa/generis-auth-ldap

Installation

Preparation

  • Ensure the PHP LDAP module is installed, and enabled for your apache config.
  • Ensure composer is installed (https://getcomposer.org/download/)
  • Install Tao as you would normally

Tao 2.6 does not yet use composer for the entire project, but it is used in generis. So in order to add a library:

* place the attached composer.json in /generis

* delete the directories /generis/vendor/doctrine/ and /generis/vendor/easyrdf (they will be recreated)

* change to the directory /generis and run

composer install
  • make sure the newly created files are accessible to your apache user.

Configuration

Tao 2.6 does not support any Authentication configuration, so the only way to use the LDAP Adapter is to replace the Tao AuthAdapter:

  • replace the file /generis/core/kernel/users/class.AuthAdapter.php with the attached class.AuthAdapter.php
  • modify the configuration in class.AuthAdapter.php to your server

Usage

You should now be able to use the credentials defined in you LDAP server to login to Tao.

Limitations

  • LDAP authentication in Tao 2.6 will replace the Tao user authentication, so you will not be able to use your Tao login anymore
  • LDAP authentication in Tao 2.6. only works for test-takers