<samba:parameter name="restrict anonymous"
type="integer"
context="G"
+ function="_restrict_anonymous"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
there could still be applications relying on anonymous access.
</para>
+ <para>
+ Setting <smbconfoption name="restrict anonymous">0</smbconfoption>
+ will not restrict anonymous SAMR access.
+ </para>
+
<para>
Setting <smbconfoption name="restrict anonymous">1</smbconfoption>
will disable anonymous SAMR access.
</para>
</description>
-<value type="default">0</value>
+<value type="default">2</value>
</samba:parameter>
Globals.smbd_profiling_level = 0;
Globals.stat_cache = true; /* use stat cache by default */
Globals.max_stat_cache_size = 512; /* 512k by default */
- Globals.restrict_anonymous = 0;
+ Globals.restrict_anonymous = 2;
Globals.client_lanman_auth = false; /* Do NOT use the LanMan hash if it is available */
Globals.client_plaintext_auth = false; /* Do NOT use a plaintext password even if is requested by the server */
Globals._lanman_auth = false; /* Do NOT use the LanMan hash, even if it is supplied */
return MAX(1, lp__winbind_max_domain_connections());
}
+int lp_restrict_anonymous(void)
+{
+ int val = lp__restrict_anonymous();
+
+ if (IS_DC) {
+ return MIN(val, 1);
+ }
+
+ return val;
+}
+
/* These functions remain in source3/param for now */
#include "lib/param/param_functions.c"