PHP Класс Ingo_Transport_Ldap, horde

Автор: Jason M. Felice ([email protected])
Автор: Jan Schneider ([email protected])
Наследование: extends Ingo_Transport_Base
Показать файл Открыть проект

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

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