diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-08-28 03:28:03 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2006-08-28 03:28:03 +0000 |
commit | 337b83afed0a2ec6925122c9a3d28a6acc393366 (patch) | |
tree | 2805c610bf1cc395a1401c9148b943a7fdee0741 /source/auth/auth_util.c | |
parent | 1a502348cc018391a0f2f94cffde65fd2cce013c (diff) | |
download | samba-337b83afed0a2ec6925122c9a3d28a6acc393366.tar.gz samba-337b83afed0a2ec6925122c9a3d28a6acc393366.tar.xz samba-337b83afed0a2ec6925122c9a3d28a6acc393366.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
Diffstat (limited to 'source/auth/auth_util.c')
-rw-r--r-- | source/auth/auth_util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index 2f2a2f0b83f..7d240280832 100644 --- a/source/auth/auth_util.c +++ b/source/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; |