summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-08-28 03:28:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:50 -0500
commit9356831484fcba09d0d4f522ff78f9c30d86c99e (patch)
tree73846e6164e1f503bbd5ca6ae7de65cbfe1362a5
parent69ecd9538fac24e20c7500096a479a7c8ff260ba (diff)
downloadsamba-9356831484fcba09d0d4f522ff78f9c30d86c99e.tar.gz
samba-9356831484fcba09d0d4f522ff78f9c30d86c99e.tar.bz2
samba-9356831484fcba09d0d4f522ff78f9c30d86c99e.zip
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)
-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;