ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
LDAP.php
Go to the documentation of this file.
1 <?php
2 
14 {
15 
19  private $ldapConfig;
20 
21 
28  public function __construct($info, $config)
29  {
30  assert('is_array($info)');
31  assert('is_array($config)');
32 
33  // Call the parent constructor first, as required by the interface
34  parent::__construct($info, $config);
35 
36  $this->ldapConfig = new sspmod_ldap_ConfigHelper($config,
37  'Authentication source ' . var_export($this->authId, true));
38  }
39 
40 
49  protected function login($username, $password, array $sasl_args = null)
50  {
51  assert('is_string($username)');
52  assert('is_string($password)');
53 
54  return $this->ldapConfig->login($username, $password, $sasl_args);
55  }
56 
57 }
__construct($info, $config)
Constructor for this authentication source.
Definition: LDAP.php:28
$ldapConfig
A LDAP configuration object.
Definition: LDAP.php:19
$password
Definition: pwgen.php:17
Create styles array
The data for the language used.
login($username, $password, array $sasl_args=null)
Attempt to log in using the given username and password.
Definition: LDAP.php:49
$info
Definition: index.php:5