项目作者: IET-OU

项目描述 :
Lightweight Directory Access Protocol (LDAP), for The Open University.
高级语言: PHP
项目地址: git://github.com/IET-OU/ldap-ou.git
创建时间: 2019-02-13T18:08:30Z
项目社区:https://github.com/IET-OU/ldap-ou

开源协议:

下载


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:

  1. {
  2. "repositories": [
  3. {
  4. "type": "composer",
  5. "url": "https://embed.open.ac.uk/iet-satis/"
  6. }
  7. ]
  8. }

Then at a terminal, type:

  1. composer require iet-ou/ldap-ou

Standalone test:

  1. cp -n .env.example .env
  2. vi .env # Edit!
  3. composer install
  4. composer test
  5. composer ldap -v -- --oucu=xyzz123

API

  1. use IET_OU\LdapOu\LdapOu;
  2. # LdapOu::loadDotenv() OR equivalent
  3. LdapOu::connect();
  4. LdapOu::searchByOucu('xyzz123');
  5. $email = LdapOu::getEmailAddress();

Sources


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