Commits
136
136
}
137
137
elseif ($is_valid) {
138
138
$ldap_validator = new CLdapAuthValidator([
139
139
'conf' => [
140
140
'host' => $config['ldap_host'],
141
141
'port' => $config['ldap_port'],
142
142
'base_dn' => $config['ldap_base_dn'],
143
143
'bind_dn' => $config['ldap_bind_dn'],
144
144
'bind_password' => $config['ldap_bind_password'],
145
145
'search_attribute' => $config['ldap_search_attribute']
146
-
]
146
+
],
147
+
'detailed_errors' => true
147
148
]);
148
149
149
150
$login = $ldap_validator->validate([
150
151
'user' => $this->getInput('ldap_test_user', CWebUser::$data['alias']),
151
152
'password' => $this->getInput('ldap_test_password', '')
152
153
]);
153
154
154
155
if (!$login) {
155
156
$this->response->setMessageError($ldap_validator->getError());
156
157
$is_valid = false;