]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix #2597 LDAP login with LDAPS option
authorCraig Holyoak <cholyoak@redlands.qld.edu.au>
Fri, 19 Feb 2021 03:42:17 +0000 (04:42 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 2 Mar 2021 10:52:19 +0000 (11:52 +0100)
gui/baculum/protected/Common/Class/Ldap.php

index 0a55f50fcd95413daa9e15ea9fb275331aa92eb2..d9ebf947510ff2567c99547eb58d796dd44f4168 100644 (file)
@@ -228,7 +228,7 @@ class Ldap extends CommonModule {
         */
        public function getLdapUri() {
                $protocol = self::PROTOCOL_PLAIN;
-               if (key_exists('ldaps', $this->params) && $this->params['ldaps'] === 1) {
+               if (key_exists('ldaps', $this->params) && $this->params['ldaps'] == 1) {
                        $protocol = self::PROTOCOL_SSL;
                }
                return sprintf(