diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-29 13:58:21 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-30 09:23:59 +0200 |
commit | 7f3fcbc49f76028d19a835a93735b2190b4e3f09 (patch) | |
tree | 32c912890cfae7336341c8437bbe33cbd537ff08 /apps/user_ldap/lib/Connection.php | |
parent | c99ebaa8662da8b1c71e10e14fe36dd8ff54167e (diff) | |
download | nextcloud-server-7f3fcbc49f76028d19a835a93735b2190b4e3f09.tar.gz nextcloud-server-7f3fcbc49f76028d19a835a93735b2190b4e3f09.zip |
fix(user_ldap): Improve typing and fix a var name
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/Connection.php')
-rw-r--r-- | apps/user_ldap/lib/Connection.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index f6ff14927a1..8c21032cfe6 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -448,7 +448,7 @@ class Connection extends LDAPUtility { $backupPort = (int)$this->configuration->ldapBackupPort; if ($backupPort <= 0) { - $this->configuration->backupPort = $this->configuration->ldapPort; + $this->configuration->ldapBackupPort = $this->configuration->ldapPort; } //make sure empty search attributes are saved as simple, empty array @@ -463,7 +463,7 @@ class Connection extends LDAPUtility { if ((stripos((string)$this->configuration->ldapHost, 'ldaps://') === 0) && $this->configuration->ldapTLS) { - $this->configuration->ldapTLS = false; + $this->configuration->ldapTLS = (string)false; $this->logger->info( 'LDAPS (already using secure connection) and TLS do not work together. Switched off TLS.', ['app' => 'user_ldap'] |