]> BookStack Code Mirror - bookstack/blobdiff - app/Services/LdapService.php
Update Ldap.php
[bookstack] / app / Services / LdapService.php
index 3d89e1e44c7c33f1d97b5591a9342766dd6e41d0..b7f101ad2c3a9088357941df9c042eb973081dcb 100644 (file)
@@ -122,7 +122,7 @@ class LdapService
 
         // Set any required options
         if ($this->config['version']) {
-            $this->ldap->setOption($ldapConnection, LDAP_OPT_PROTOCOL_VERSION, $this->config['version']);
+            $this->ldap->setVersion($ldapConnection, $this->config['version']);
         }
 
         $this->ldapConnection = $ldapConnection;