[fix](auth)ldap set passwd need forward to master (#36436) (#36598)

pick from master: #36436
This commit is contained in:
zhangdong
2024-06-20 18:35:37 +08:00
committed by GitHub
parent 3ee259fc00
commit 838af13001

View File

@ -91,7 +91,7 @@ public class SetStmt extends StatementBase {
public RedirectStatus getRedirectStatus() {
if (setVars != null) {
for (SetVar var : setVars) {
if (var instanceof SetPassVar) {
if (var instanceof SetPassVar || var instanceof SetLdapPassVar) {
return RedirectStatus.FORWARD_WITH_SYNC;
} else if (var.getType() == SetType.GLOBAL) {
return RedirectStatus.FORWARD_WITH_SYNC;