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}
An exception for terminatinating execution or to throw for unit testing.
__construct($info, $config)
Constructor for this authentication source.
Definition: LDAP.php:28
login($username, $password, array $sasl_args=null)
Attempt to log in using the given username and password.
Definition: LDAP.php:49
$ldapConfig
A LDAP configuration object.
Definition: LDAP.php:19
$info
Definition: index.php:5
$password
Definition: pwgen.php:17