upSimpleLdapPlugin - 1.0.0

The upSimpleLdapPlugin is a symfony plugin that provides a very easy to use class for LDAP.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

upSimpleLdapPlugin

Features

  • Authenticate an user with the credentials from the LDAP directory
  • Retrieve informations from the directory for a given user
  • An user can update his password

Installation

  • Install the plugin :
 php symfony plugin:install upSimpleLdapPlugin
  • Edit apps/myapp/config/app.yml to add a ldap section :
 ldap:
   host: 192.168.0.1
   port: 389
   user: cn=ldapuser,dc=myhost,dc=com
   pass: secret
   baseuser: dc=users,dc=myhost,dc=com
   version: 3

Usage

Initialize the LDAP object

$ldap = new ldapAuth();

Authenticate an user

$result = $ldap->authenticate($login, $pass);

Get informations for an user

$infos = $ldap->getAttributes($login, array('cn', 'loginShell', 'displayName'));

Update a password

$ldap->updatePassword($login, $oldpass, $newpass);

Copyright

upSimpleLdapPlugin has been developped by Leo Cacheux for Devoteam/Uperto. It has been released under the MIT license.