|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for sspmod_ldap_ConfigHelper: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... | |
| $searchScope | |
| The scope of 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 126 of file ConfigHelper.php.
References $config, $location, and SimpleSAML_Configuration\loadFromArray().
Here is the call graph for this function:| sspmod_ldap_ConfigHelper::getAttributes | ( | $dn, | |
$attributes = null |
|||
| ) |
Definition at line 278 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 181 of file ConfigHelper.php.
References $password, and SimpleSAML\Logger\info().
Here is the call graph for this function:| 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 255 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 102 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 117 of file ConfigHelper.php.
|
private |
The user cannot get all attributes, privileged reader required.
Definition at line 107 of file ConfigHelper.php.
|
private |
The DN we should bind with before we can get the attributes.
Definition at line 112 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 92 of file ConfigHelper.php.
Referenced by searchfordn().
|
private |
Array with the base DN(s) for the search.
Definition at line 77 of file ConfigHelper.php.
|
private |
Whether we need to search for the users DN.
Definition at line 62 of file ConfigHelper.php.
|
private |
Additional LDAP filter fields for the search.
Definition at line 87 of file ConfigHelper.php.
|
private |
The password we should bind with before we can search for the user.
Definition at line 72 of file ConfigHelper.php.
|
private |
The scope of the search.
Definition at line 82 of file ConfigHelper.php.
|
private |
The username we should bind with before we can search for the user.
Definition at line 67 of file ConfigHelper.php.
|
private |
Definition at line 45 of file ConfigHelper.php.