]> BookStack Code Mirror - bookstack/blobdiff - app/Services/Ldap.php
Fixes typo causing the message not to be displayed
[bookstack] / app / Services / Ldap.php
index cfefbb4b6a1b6065f92f208c6b64b636fd4f6008..196e46a2f4cb5195a34997961907d33f0d77acaf 100644 (file)
@@ -33,6 +33,17 @@ class Ldap
         return ldap_set_option($ldapConnection, $option, $value);
     }
 
+    /**
+     * Set the version number for the given ldap connection.
+     * @param $ldapConnection
+     * @param $version
+     * @return bool
+     */
+    public function setVersion($ldapConnection, $version)
+    {
+        return $this->setOption($ldapConnection, LDAP_OPT_PROTOCOL_VERSION, $version);
+    }
+
     /**
      * Search LDAP tree using the provided filter.
      * @param resource   $ldapConnection