svn commit: samba r17871 - in branches/SAMBA_4_0/source/auth: .

abartlet at samba.org abartlet at samba.org
Mon Aug 28 03:28:04 GMT 2006


Author: abartlet
Date: 2006-08-28 03:28:03 +0000 (Mon, 28 Aug 2006)
New Revision: 17871

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17871

Log:
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

Modified:
   branches/SAMBA_4_0/source/auth/auth_util.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_util.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_util.c	2006-08-28 03:26:17 UTC (rev 17870)
+++ branches/SAMBA_4_0/source/auth/auth_util.c	2006-08-28 03:28:03 UTC (rev 17871)
@@ -607,7 +607,12 @@
 	}
 
 	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;



More information about the samba-cvs mailing list