summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-14 14:16:41 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-08-18 09:50:44 +1000
commita68a5592c5fc88fc7ba335cfbe375d687c8b8112 (patch)
tree91ff16eb68f1d29159389ca03df5a06e85e72e3c /source4
parentd99ff145aec8933a49be9e6fcc4d9e39591bbb28 (diff)
downloadsamba-a68a5592c5fc88fc7ba335cfbe375d687c8b8112.tar.gz
samba-a68a5592c5fc88fc7ba335cfbe375d687c8b8112.tar.bz2
samba-a68a5592c5fc88fc7ba335cfbe375d687c8b8112.zip
s4:auth Remove the system:anonymous parameter used for the LDAP backend
This isn't needed any more, and just introduces complexity.
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/system_session.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/source4/auth/system_session.c b/source4/auth/system_session.c
index f872f602c1..00184c861a 100644
--- a/source4/auth/system_session.c
+++ b/source4/auth/system_session.c
@@ -175,7 +175,6 @@ _PUBLIC_ struct auth_session_info *system_session(struct loadparm_context *lp_ct
static NTSTATUS _auth_system_session_info(TALLOC_CTX *parent_ctx,
struct loadparm_context *lp_ctx,
- bool anonymous_credentials,
struct auth_session_info **_session_info)
{
NTSTATUS nt_status;
@@ -203,11 +202,7 @@ static NTSTATUS _auth_system_session_info(TALLOC_CTX *parent_ctx,
cli_credentials_set_conf(session_info->credentials, lp_ctx);
- if (anonymous_credentials) {
- cli_credentials_set_anonymous(session_info->credentials);
- } else {
- cli_credentials_set_machine_account_pending(session_info->credentials, lp_ctx);
- }
+ cli_credentials_set_machine_account_pending(session_info->credentials, lp_ctx);
*_session_info = session_info;
return NT_STATUS_OK;
@@ -220,7 +215,7 @@ _PUBLIC_ struct auth_session_info *system_session_anon(TALLOC_CTX *mem_ctx, stru
{
NTSTATUS nt_status;
struct auth_session_info *session_info = NULL;
- nt_status = _auth_system_session_info(mem_ctx, lp_ctx, true, &session_info);
+ nt_status = _auth_system_session_info(mem_ctx, lp_ctx, &session_info);
if (!NT_STATUS_IS_OK(nt_status)) {
return NULL;
}
@@ -234,9 +229,8 @@ _PUBLIC_ NTSTATUS auth_system_session_info(TALLOC_CTX *parent_ctx,
struct auth_session_info **_session_info)
{
return _auth_system_session_info(parent_ctx,
- lp_ctx,
- lpcfg_parm_bool(lp_ctx, NULL, "system", "anonymous", false),
- _session_info);
+ lp_ctx,
+ _session_info);
}
NTSTATUS auth_system_server_info(TALLOC_CTX *mem_ctx, const char *netbios_name,