Skip to content

Latest commit

 

History

History
75 lines (54 loc) · 1.92 KB

README.md

File metadata and controls

75 lines (54 loc) · 1.92 KB

IET-OU / ldap-ou

Lightweight Directory Access Protocol (LDAP), for The Open University.

Based on Zend LDAP. Used in Applaud.

Install .. test

Add IET's satis repository to your composer.json:

{
  "repositories": [
    {
      "type": "composer",
      "url": "https://embed.open.ac.uk/iet-satis/"
    }
  ]
}

Then at a terminal, type:

composer require iet-ou/ldap-ou

Standalone test:

cp -n .env.example .env
vi .env  # Edit!
composer install
composer test

composer ldap -v -- --oucu=xyzz123

API

use IET_OU\LdapOu\LdapOu;

# LdapOu::loadDotenv() OR equivalent
LdapOu::connect();
LdapOu::searchByOucu('xyzz123');

$email = LdapOu::getEmailAddress();

Sources


© 2012-2019 The Open University (Institute of Educational Technology).