PHP Класс sspmod_ldap_Auth_Process_AttributeAddFromLDAP, simplesamlphp

Original Author: Steve Moitozo II Created: 20100513 Updated: 20100920 Steve Moitozo II - incorporated feedback from Olav Morken to prep code for inclusion in SimpleSAMLphp distro - moved call to ldap_set_options() inside test for $ds - added the output of ldap_error() to the exceptions - reduced some of the nested ifs - added support for multiple values - added support for anonymous binds - added escaping of search filter and attribute Updated: 20111118 Ryan Panning - Updated the class to use BaseFilter which reuses LDAP connection features - Added conversion of original filter option names for backwards-compatibility - Updated the constructor to use the new config method - Updated the process method to use the new config variable names Updated: 20131119 Yørn de Jong / Jaime Perez - Added support for retrieving multiple values at once from LDAP - Don't crash but fail silently on LDAP errors; the plugin is to complement attributes
Автор: Yørn de Jong
Автор: Jaime Perez
Автор: Steve Moitozo
Автор: JAARS, Inc.
Автор: Ryan Panning
Наследование: extends sspmod_ldap_Auth_Process_BaseFilter
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$attr_policy string What to do with attributes when the target already exists. Either replace, merge or add.
$search_attributes string LDAP attribute to add to the request attributes
$search_filter string LDAP search filter to use in the LDAP query

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

Метод Описание
__construct ( array $config, mixed $reserved ) Initialize this filter.
process ( &$request ) Add attributes from an LDAP server.

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

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

Initialize this filter.
public __construct ( array $config, mixed $reserved )
$config array Configuration information about this filter.
$reserved mixed For future use.

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

Add attributes from an LDAP server.
public process ( &$request )

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

$attr_policy защищенное свойство

What to do with attributes when the target already exists. Either replace, merge or add.
protected string $attr_policy
Результат string

$search_attributes защищенное свойство

LDAP attribute to add to the request attributes
protected string $search_attributes
Результат string

$search_filter защищенное свойство

LDAP search filter to use in the LDAP query
protected string $search_filter
Результат string