PHP 클래스 PMF_Ldap, phpMyFAQ

부터: 2004-12-16
저자: Adam Greene ([email protected])
저자: Thorsten Rinne ([email protected])
저자: Alberto Cabello Sanchez ([email protected])
저자: Lars Scheithauer ([email protected])
파일 보기 프로젝트 열기: thorsten/phpmyfaq 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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