From 9356831484fcba09d0d4f522ff78f9c30d86c99e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 28 Aug 2006 03:28:03 +0000 Subject: 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 f9d39dba41441cd5d06964ce0aebef9bcba40759) --- source4/auth/auth_util.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c index 2f2a2f0b83..7d24028083 100644 --- a/source4/auth/auth_util.c +++ b/source4/auth/auth_util.c @@ -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; -- cgit