From bce21331d50a020cd0928178a68fe4aac2cc50b4 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Wed, 5 Apr 2023 14:54:28 +0200 Subject: [PATCH] Fix LDAP directory creation --- src/AuthLDAP.php | 3 +++ tests/LDAP/AuthLdap.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AuthLDAP.php b/src/AuthLDAP.php index f3f863aad07..dabe19a96e5 100644 --- a/src/AuthLDAP.php +++ b/src/AuthLDAP.php @@ -176,6 +176,9 @@ public function post_getEmpty() $this->fields['use_bind'] = 1; $this->fields['picture_field'] = ''; $this->fields['responsible_field'] = ''; + $this->fields['can_support_pagesize'] = 0; + $this->fields['pagesize'] = 0; + $this->fields['ldap_maxlimit'] = 0; } diff --git a/tests/LDAP/AuthLdap.php b/tests/LDAP/AuthLdap.php index f58832a4bed..0cbae33269b 100644 --- a/tests/LDAP/AuthLdap.php +++ b/tests/LDAP/AuthLdap.php @@ -130,7 +130,7 @@ public function testPost_getEmpty() { $ldap = new \AuthLDAP(); $ldap->post_getEmpty(); - $this->array($ldap->fields)->hasSize(25); + $this->array($ldap->fields)->hasSize(28); } public function testUnsetUndisclosedFields()