mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s4:ldap_server: remove useless indentation level arround ldapsrv_backend_Init()
Check with git show -w Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
eaa8acf6e3
commit
126fd7e45d
@ -519,25 +519,25 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
|
||||
"SASL:[%s]: Failed to get session info: %s",
|
||||
req->creds.SASL.mechanism, nt_errstr(status));
|
||||
goto do_reply;
|
||||
} else {
|
||||
talloc_unlink(conn, conn->session_info);
|
||||
conn->session_info = talloc_steal(conn, session_info);
|
||||
}
|
||||
|
||||
/* don't leak the old LDB */
|
||||
talloc_unlink(conn, conn->ldb);
|
||||
talloc_unlink(conn, conn->session_info);
|
||||
conn->session_info = talloc_steal(conn, session_info);
|
||||
|
||||
call->conn->authz_logged = true;
|
||||
/* don't leak the old LDB */
|
||||
talloc_unlink(conn, conn->ldb);
|
||||
|
||||
status = ldapsrv_backend_Init(conn);
|
||||
call->conn->authz_logged = true;
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
result = LDAP_OPERATIONS_ERROR;
|
||||
errstr = talloc_asprintf(reply,
|
||||
"SASL:[%s]: Failed to advise samdb of new credentials: %s",
|
||||
req->creds.SASL.mechanism,
|
||||
nt_errstr(status));
|
||||
goto do_reply;
|
||||
}
|
||||
status = ldapsrv_backend_Init(conn);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
result = LDAP_OPERATIONS_ERROR;
|
||||
errstr = talloc_asprintf(reply,
|
||||
"SASL:[%s]: Failed to advise samdb of new credentials: %s",
|
||||
req->creds.SASL.mechanism,
|
||||
nt_errstr(status));
|
||||
goto do_reply;
|
||||
}
|
||||
|
||||
if (NT_STATUS_IS_OK(status) && context) {
|
||||
|
Reference in New Issue
Block a user