PHP Class 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
Author: Yørn de Jong
Author: Jaime Perez
Author: Steve Moitozo
Author: JAARS, Inc.
Author: Ryan Panning
Inheritance: extends sspmod_ldap_Auth_Process_BaseFilter
Show file Open project: simplesamlphp/simplesamlphp

Protected Properties

Property Type Description
$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

Public Methods

Method Description
__construct ( array $config, mixed $reserved ) Initialize this filter.
process ( &$request ) Add attributes from an LDAP server.

Method Details

__construct() public method

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

process() public method

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

Property Details

$attr_policy protected property

What to do with attributes when the target already exists. Either replace, merge or add.
protected string $attr_policy
return string

$search_attributes protected property

LDAP attribute to add to the request attributes
protected string $search_attributes
return string

$search_filter protected property

LDAP search filter to use in the LDAP query
protected string $search_filter
return string