Méthode |
Description |
|
__construct ( PMF_Configuration $config ) : PMF_Ldap |
Constructor |
|
connect ( string $ldapServer, integer $ldapPort, string $ldapBase, string $ldapUser = '', string $ldapPassword = '' ) : boolean |
Connects to given LDAP server with given credentials |
|
error ( resource $ds = null ) : string |
Returns the LDAP error message of the last LDAP command |
|
getCompleteName ( string $username ) : string |
Returns the user's full name from LDAP |
|
getDn ( string $username ) : string |
Returns the user's DN |
|
getMail ( string $username ) : string |
Returns the user's email address from LDAP |
|
quote ( string $string ) : string |
Quotes LDAP strings in accordance with the RFC 2254 |
|