ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($config, $location) | |
Constructor for this configuration parser. More... | |
login ($username, $password, array $sasl_args=null) | |
Attempt to log in using the given username and password. More... | |
searchfordn ($attribute, $value, $allowZeroHits) | |
Search for a DN. More... | |
getAttributes ($dn, $attributes=null) | |
Private Attributes | |
$location | |
String with the location of this configuration. More... | |
$hostname | |
The hostname of the LDAP server. More... | |
$enableTLS | |
Whether we should use TLS/SSL when contacting the LDAP server. More... | |
$debug | |
$timeout | |
$port | |
$referrals | |
Whether to follow referrals. More... | |
$searchEnable | |
Whether we need to search for the users DN. More... | |
$searchUsername | |
The username we should bind with before we can search for the user. More... | |
$searchPassword | |
The password we should bind with before we can search for the user. More... | |
$searchBase | |
Array with the base DN(s) for the search. More... | |
$searchFilter | |
Additional LDAP filter fields for the search. More... | |
$searchAttributes | |
The attributes which should match the username. More... | |
$dnPattern | |
The DN pattern we should use to create the DN from the username. More... | |
$attributes | |
The attributes we should fetch. More... | |
$privRead | |
The user cannot get all attributes, privileged reader required. More... | |
$privUsername | |
The DN we should bind with before we can get the attributes. More... | |
$privPassword | |
The password we should bind with before we can get the attributes. More... | |
Definition at line 11 of file ConfigHelper.php.
sspmod_ldap_ConfigHelper::__construct | ( | $config, | |
$location | |||
) |
Constructor for this configuration parser.
array | $config | Configuration. |
string | $location | The location of this configuration. Used for error reporting. |
Definition at line 130 of file ConfigHelper.php.
References $config, $location, and SimpleSAML_Configuration\loadFromArray().
sspmod_ldap_ConfigHelper::getAttributes | ( | $dn, | |
$attributes = null |
|||
) |
Definition at line 281 of file ConfigHelper.php.
References $attributes.
sspmod_ldap_ConfigHelper::login | ( | $username, | |
$password, | |||
array | $sasl_args = null |
||
) |
Attempt to log in using the given username and password.
Will throw a SimpleSAML_Error_Error('WRONGUSERPASS') if the username or password is wrong. If there is a configuration problem, an Exception will be thrown.
string | $username | The username the user wrote. |
string | $password | The password the user wrote. |
arrray | $sasl_args | Array of SASL options for LDAP bind. |
Definition at line 184 of file ConfigHelper.php.
References $password, and SimpleSAML\Logger\info().
sspmod_ldap_ConfigHelper::searchfordn | ( | $attribute, | |
$value, | |||
$allowZeroHits | |||
) |
Search for a DN.
string | array | $attribute | The attribute name(s) searched for. If set to NULL, values from configuration is used. |
string | $value | The attribute value searched for. |
bool | $allowZeroHits | Determines if the method will throw an exception if no hits are found. Defaults to FALSE. |
SimpleSAML_Error_AuthSource | if:
|
SimpleSAML_Error_UserNotFound | if:
|
Definition at line 258 of file ConfigHelper.php.
References $searchAttributes.
|
private |
The attributes we should fetch.
Can be NULL in which case we will fetch all attributes.
Definition at line 103 of file ConfigHelper.php.
Referenced by getAttributes().
|
private |
Definition at line 37 of file ConfigHelper.php.
|
private |
The DN pattern we should use to create the DN from the username.
Definition at line 97 of file ConfigHelper.php.
|
private |
Whether we should use TLS/SSL when contacting the LDAP server.
Definition at line 29 of file ConfigHelper.php.
|
private |
The hostname of the LDAP server.
Definition at line 23 of file ConfigHelper.php.
|
private |
String with the location of this configuration.
Used for error reporting.
Definition at line 17 of file ConfigHelper.php.
Referenced by __construct().
|
private |
Definition at line 52 of file ConfigHelper.php.
|
private |
The password we should bind with before we can get the attributes.
Definition at line 121 of file ConfigHelper.php.
|
private |
The user cannot get all attributes, privileged reader required.
Definition at line 109 of file ConfigHelper.php.
|
private |
The DN we should bind with before we can get the attributes.
Definition at line 115 of file ConfigHelper.php.
|
private |
Whether to follow referrals.
Definition at line 57 of file ConfigHelper.php.
|
private |
The attributes which should match the username.
Definition at line 91 of file ConfigHelper.php.
Referenced by searchfordn().
|
private |
Array with the base DN(s) for the search.
Definition at line 81 of file ConfigHelper.php.
|
private |
Whether we need to search for the users DN.
Definition at line 63 of file ConfigHelper.php.
|
private |
Additional LDAP filter fields for the search.
Definition at line 86 of file ConfigHelper.php.
|
private |
The password we should bind with before we can search for the user.
Definition at line 75 of file ConfigHelper.php.
|
private |
The username we should bind with before we can search for the user.
Definition at line 69 of file ConfigHelper.php.
|
private |
Definition at line 45 of file ConfigHelper.php.