luitd/lu-ldap-authorization

LDAP Authorization Library for University of Latvia

1.2.1 2020-08-24 15:10 UTC

This package is not auto-updated.

Last update: 2022-01-26 18:58:16 UTC


README

Install via Composer

composer req luitd/lu-ldap-authorization

Usage

$ldapAuth = new LDAP($ldap_server, $ldap_dc);
$user = $ldapAuth->authorize($request->username, $request->password);

Variable $user will containt false on failed authorization and LDAPUser object on succesfull authorization.

Requirements

  • PHP 7.2
  • PHP LDAP Extension