apung/ldap

Laravel

Maintainers

Details

github.com/apung/eldap

Source

Issues

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

pkg:composer/apung/ldap

v0.0.1 2014-11-29 20:33 UTC

This package is not auto-updated.

Last update: 2025-10-07 06:58:25 UTC


README

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Installing

composer require apung\ldap

Integrating

'providers' => array(
    ....
    'Apung\Ldap\LdapServiceProvider',
    ....
),

Usage

$options = array(
            'host'=>'ldap.example.com',
            'port'=>389,
            'base_dn'=>'dc=example,dc=com',
            'bind_rdn'=>'cn=admin,dc=example,dc=com',
            'bind_pw'=>'ManagerPassword!!!'
        );

$ldap = new \Apung\Ldap\Ldap($options);

//search person (which have uid) inside ou=people,dc=exampe,dc=com
$select = $ldap->select('uid')->from('ou=people,dc=example,dc=com')->where(array('uid'=>'*'))->get();

//like above, but return DN
$select = $ldap->select('uid')->from('ou=people,dc=example,dc=com')->where(array('uid'=>'*'))->withdn()->get();

//like above, but return all attributes (inside select statement)
$select = $ldap->select(array('uid','givenname'))->from('ou=people,dc=example,dc=com')->where(array('uid'=>'*'))->getAll();

TODO

TODO:

  • CRUD (Create / Read / Update / Delete) statements
  • Documentation