PHP 클래스 Ingo_Transport_Ldap, horde

저자: Jason M. Felice ([email protected])
저자: Jan Schneider ([email protected])
상속: extends Ingo_Transport_Base
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
getScript ( ) : string Returns the content of the currently active script.
setScriptActive ( array $script ) Sets a script running on the backend.

보호된 메소드들

메소드 설명
_connect ( ) Connect and bind to ldap server.
_getScripts ( resource $ldapcn, string &$userDN ) : array Retrieve current user's scripts.
_substUser ( string $templ ) : string Create a DN from a DN template.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array

_connect() 보호된 메소드

Connect and bind to ldap server.
protected _connect ( )

_getScripts() 보호된 메소드

Retrieve current user's scripts.
protected _getScripts ( resource $ldapcn, string &$userDN ) : array
$ldapcn resource The connection to the LDAP server.
$userDN string Set to the user object's real DN.
리턴 array Script sources list.

_substUser() 보호된 메소드

This is done by substituting the username for %u and the 'dc=' components for %d.
protected _substUser ( string $templ ) : string
$templ string The DN template (from the config).
리턴 string The resulting DN.

getScript() 공개 메소드

Returns the content of the currently active script.
public getScript ( ) : string
리턴 string The complete ruleset of the specified user.

setScriptActive() 공개 메소드

Sets a script running on the backend.
public setScriptActive ( array $script )
$script array The filter script information. Passed elements: - 'name': (string) the script name. - 'recipes': (array) the filter recipe objects. - 'script': (string) the filter script.