2017 © Pedro Peláez
 

library phpldap

A Ldap client for PHP on top of PHP's ldap extension.

image

hanguangchao/phpldap

A Ldap client for PHP on top of PHP's ldap extension.

  • Wednesday, January 31, 2018
  • by hanguangchao
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

phpldap PHP封装LDAP扩展

安装

composer require hanguangchao/phpldap

示例

$config  = [
  'host' => 'ldap://youdoman.com:389',
  'basedn' => 'dc=youdoman,dc=com',
  'binddn' => 'cn=adminuser',
  'bindpw' => 'pwd',
  'login_attribute' => 'uid',
  'fullname_attribute' => 'cn',
  'objectclass_org' => ['organizationalUnit', 'top'],
  'objectclass_person' => ['inetOrgPerson', 'posixAccount', 'top'],
  'log_path' => '/tmp/ldap',
  'log_enable' => true,
  'log_debug' => false,
 ];
$ldap = LdapApi::getInstance($config);
$result = $ldap->search('uid=test');

The Versions

31/01 2018

dev-master

9999999-dev

A Ldap client for PHP on top of PHP's ldap extension.

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-ldap *

 

by Avatar hanguangchao