mirror of
https://github.com/samba-team/samba.git
synced 2025-11-14 12:23:52 +03:00
r12686: Push the real SASL list into the rootdse.
Get this out of the server credentials, and push it down to ldb via an opaque pointer. Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a7c168d889
commit
61700252e0
@@ -115,22 +115,7 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
|
||||
|
||||
gensec_set_target_service(call->conn->gensec, "ldap");
|
||||
|
||||
server_credentials
|
||||
= cli_credentials_init(call);
|
||||
if (!server_credentials) {
|
||||
DEBUG(1, ("Failed to init server credentials\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
cli_credentials_set_conf(server_credentials);
|
||||
status = cli_credentials_set_machine_account(server_credentials);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(10, ("Failed to obtain server credentials, perhaps a standalone server?: %s\n", nt_errstr(status)));
|
||||
talloc_free(server_credentials);
|
||||
server_credentials = NULL;
|
||||
}
|
||||
|
||||
gensec_set_credentials(call->conn->gensec, server_credentials);
|
||||
gensec_set_credentials(call->conn->gensec, call->conn->server_credentials);
|
||||
|
||||
gensec_want_feature(call->conn->gensec, GENSEC_FEATURE_SIGN);
|
||||
gensec_want_feature(call->conn->gensec, GENSEC_FEATURE_SEAL);
|
||||
|
||||
Reference in New Issue
Block a user