1 | <?php |
||
7 | class LdapService |
||
8 | { |
||
9 | /** |
||
10 | * @var Ldap |
||
11 | */ |
||
12 | protected $ldap; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $rdn; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $password; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $base; |
||
28 | |||
29 | /** |
||
30 | * @param Ldap $ldap |
||
31 | * @param string $rdn |
||
32 | * @param string $password |
||
33 | * @param string $base |
||
34 | */ |
||
35 | public function __construct( |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | */ |
||
51 | protected function bind() |
||
55 | |||
56 | /** |
||
57 | * @param array $data |
||
58 | * @param string $type |
||
59 | * @param string $format |
||
60 | * @return string |
||
61 | */ |
||
62 | public function createFilter(array $data = [], $type = '&', $format = '%s') |
||
79 | |||
80 | /** |
||
81 | * @param $filter |
||
82 | * @param array $attributes |
||
83 | * @param bool $attrsOnly |
||
84 | * @param int $sizeLimit |
||
85 | * @param int $timeLimit |
||
86 | * @return mixed |
||
87 | */ |
||
88 | public function search($filter, $attributes = [], $attrsOnly = false, $sizeLimit = 0, $timeLimit = 0) |
||
114 | |||
115 | /** |
||
116 | * @param $filter |
||
117 | * @param array $attributes |
||
118 | * @param bool $attrsOnly |
||
119 | * @param int $sizeLimit |
||
120 | * @param int $timeLimit |
||
121 | * @return mixed |
||
122 | */ |
||
123 | public function fuzzy($filter, $attributes = [], $attrsOnly = false, $sizeLimit = 0, $timeLimit = 0) |
||
130 | } |
||
131 |