summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/auth_util.c7
1 files changed, 6 insertions, 1 deletions
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;