PHP Класс PMF_Ldap, phpMyFAQ

С версии: 2004-12-16
Автор: Adam Greene ([email protected])
Автор: Thorsten Rinne ([email protected])
Автор: Alberto Cabello Sanchez ([email protected])
Автор: Lars Scheithauer ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$errno integer LDAP error number
$error string Errorlog

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
getLdapData ( string $username, string $data ) : string Returns specific data from LDAP
getLdapDn ( string $username ) : string Returns the DN from LDAP

Описание методов

__construct() публичный Метод

Constructor
public __construct ( PMF_Configuration $config ) : PMF_Ldap
$config PMF_Configuration
Результат PMF_Ldap

connect() публичный Метод

Connects to given LDAP server with given credentials
public connect ( string $ldapServer, integer $ldapPort, string $ldapBase, string $ldapUser = '', string $ldapPassword = '' ) : boolean
$ldapServer string
$ldapPort integer
$ldapBase string
$ldapUser string
$ldapPassword string
Результат boolean

error() публичный Метод

Returns the LDAP error message of the last LDAP command
public error ( resource $ds = null ) : string
$ds resource LDAP resource
Результат string

getCompleteName() публичный Метод

Returns the user's full name from LDAP
public getCompleteName ( string $username ) : string
$username string Username
Результат string

getDn() публичный Метод

Returns the user's DN
public getDn ( string $username ) : string
$username string Username
Результат string

getMail() публичный Метод

Returns the user's email address from LDAP
public getMail ( string $username ) : string
$username string Username
Результат string

quote() публичный Метод

Quotes LDAP strings in accordance with the RFC 2254
public quote ( string $string ) : string
$string string
Результат string

Описание свойств

$errno публичное свойство

LDAP error number
public int $errno
Результат integer

$error публичное свойство

Errorlog
public string $error
Результат string