change default value of ldap_tls to 0. It will be detected anyway, but starting with 0 will lead to errors and unconfigurability
This commit is contained in:
parent
a8b831b018
commit
60bf934e6f
|
@ -377,7 +377,7 @@ class Configuration {
|
||||||
'ldap_groupfilter_groups' => '',
|
'ldap_groupfilter_groups' => '',
|
||||||
'ldap_display_name' => 'displayName',
|
'ldap_display_name' => 'displayName',
|
||||||
'ldap_group_display_name' => 'cn',
|
'ldap_group_display_name' => 'cn',
|
||||||
'ldap_tls' => 1,
|
'ldap_tls' => 0,
|
||||||
'ldap_nocase' => 0,
|
'ldap_nocase' => 0,
|
||||||
'ldap_quota_def' => '',
|
'ldap_quota_def' => '',
|
||||||
'ldap_quota_attr' => '',
|
'ldap_quota_attr' => '',
|
||||||
|
|
|
@ -165,6 +165,9 @@ class Wizard extends LDAPUtility {
|
||||||
public function countInBaseDN() {
|
public function countInBaseDN() {
|
||||||
// we don't need to provide a filter in this case
|
// we don't need to provide a filter in this case
|
||||||
$total = $this->countEntries(null, 'objects');
|
$total = $this->countEntries(null, 'objects');
|
||||||
|
if($total === false) {
|
||||||
|
throw new \Exception('invalid results received');
|
||||||
|
}
|
||||||
$this->result->addChange('ldap_test_base', $total);
|
$this->result->addChange('ldap_test_base', $total);
|
||||||
return $this->result;
|
return $this->result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue