From 540502369633ed163b682af916e94019907024d7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 20 Apr 2022 07:53:38 +0200 Subject: [PATCH] ldb: Avoid an "else" We return in the if-branch, easier to read this way. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/ldb-samba/ldb_ildap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ldb-samba/ldb_ildap.c b/lib/ldb-samba/ldb_ildap.c index 2c32395db70..b15f38b3843 100644 --- a/lib/ldb-samba/ldb_ildap.c +++ b/lib/ldb-samba/ldb_ildap.c @@ -872,7 +872,8 @@ failed: talloc_free(module); if (NT_STATUS_IS_LDAP(status)) { return NT_STATUS_LDAP_CODE(status); - } else if (NT_STATUS_EQUAL(status, NT_STATUS_WRONG_PASSWORD) + } + if (NT_STATUS_EQUAL(status, NT_STATUS_WRONG_PASSWORD) || NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_USER) || NT_STATUS_EQUAL(status, NT_STATUS_LOGON_FAILURE) || NT_STATUS_EQUAL(status, NT_STATUS_ACCOUNT_LOCKED_OUT)) {