1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

r17871: Add an option to make the system account behave as anonymous on the

network.  This helps where we are trying to talk to an LDAP server,
until we share a common SASL authentication scheme.

Andrew Bartlett
(This used to be commit f9d39dba41)
This commit is contained in:
Andrew Bartlett 2006-08-28 03:28:03 +00:00 committed by Gerald (Jerry) Carter
parent 69ecd9538f
commit 9356831484

View File

@ -607,7 +607,12 @@ NTSTATUS auth_system_session_info(TALLOC_CTX *parent_ctx,
}
cli_credentials_set_conf(session_info->credentials);
cli_credentials_set_machine_account_pending(session_info->credentials);
if (lp_parm_bool(-1,"system","anonymous", False)) {
cli_credentials_set_anonymous(session_info->credentials);
} else {
cli_credentials_set_machine_account_pending(session_info->credentials);
}
*_session_info = session_info;
return NT_STATUS_OK;