-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable25] Log switching to LDAP backup host because main one is not available #35456
Conversation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
} | ||
|
||
//if LDAP server is not reachable, try the Backup (Replica!) Server | ||
if ($isBackupHost || $isOverrideMainServer) { | ||
$this->doConnect($this->configuration->ldapBackupHost, | ||
$this->configuration->ldapBackupPort); | ||
$this->configuration->ldapBackupPort); |
Check notice
Code scanning / Psalm
PossiblyNullArgument
@@ -681,8 +686,8 @@ | |||
} | |||
|
|||
$ldapLogin = @$this->ldap->bind($cr, | |||
$this->configuration->ldapAgentName, | |||
$this->configuration->ldapAgentPassword); | |||
$this->configuration->ldapAgentName, |
Check notice
Code scanning / Psalm
PossiblyNullArgument
$this->configuration->ldapAgentName, | ||
$this->configuration->ldapAgentPassword); | ||
$this->configuration->ldapAgentName, | ||
$this->configuration->ldapAgentPassword); |
Check notice
Code scanning / Psalm
PossiblyNullArgument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
won't the pollute the log though to have it as "warning" instead of "debug" ?
Yeah closing, it’s nitpick anyway. |
Manual backport of #35230