mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +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 used to be commit 61700252e0
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
d26d130aa4
commit
bedfb06326
@ -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