lib:param: Add FALL_THROUGH statements in loadparm.c
[kai/samba-autobuild/.git] / lib / param / param_table.c
index 8eb791aa2c4b18b2025bef1595d786921ef5113b..f9d3b55adf2ad93d8b7d43c64f675db14fb06f3a 100644 (file)
@@ -31,6 +31,7 @@
 #include "lib/param/param.h"
 #include "lib/param/loadparm.h"
 #include "lib/param/param_global.h"
+#include "libcli/auth/ntlm_check.h"
 #include "libcli/smb/smb_constants.h"
 #include "libds/common/roles.h"
 #include "source4/lib/tls/tls.h"
@@ -126,6 +127,12 @@ static const struct enum_list enum_smb_signing_vals[] = {
        {-1, NULL}
 };
 
+static const struct enum_list enum_mdns_name_values[] = {
+       {MDNS_NAME_NETBIOS, "netbios"},
+       {MDNS_NAME_MDNS, "mdns"},
+       {-1, NULL}
+};
+
 static const struct enum_list enum_tls_verify_peer_vals[] = {
        {TLS_VERIFY_PEER_NO_CHECK,
         TLS_VERIFY_PEER_NO_CHECK_STRING},
@@ -202,9 +209,13 @@ static const struct enum_list enum_smbd_profiling_level[] = {
 static const struct enum_list enum_kerberos_method[] = {
        {KERBEROS_VERIFY_SECRETS, "default"},
        {KERBEROS_VERIFY_SECRETS, "secrets only"},
+       {KERBEROS_VERIFY_SECRETS, "secretsonly"},
        {KERBEROS_VERIFY_SYSTEM_KEYTAB, "system keytab"},
+       {KERBEROS_VERIFY_SYSTEM_KEYTAB, "systemkeytab"},
        {KERBEROS_VERIFY_DEDICATED_KEYTAB, "dedicated keytab"},
+       {KERBEROS_VERIFY_DEDICATED_KEYTAB, "dedicatedkeytab"},
        {KERBEROS_VERIFY_SECRETS_AND_KEYTAB, "secrets and keytab"},
+       {KERBEROS_VERIFY_SECRETS_AND_KEYTAB, "secretsandkeytab"},
        {-1, NULL}
 };
 
@@ -319,12 +330,27 @@ static const struct enum_list enum_mangled_names[] = {
        {MANGLED_NAMES_NO, "no"},
        {MANGLED_NAMES_NO, "false"},
        {MANGLED_NAMES_NO, "0"},
+       {MANGLED_NAMES_ILLEGAL, "illegal"},
        {MANGLED_NAMES_YES, "yes"},
        {MANGLED_NAMES_YES, "true"},
        {MANGLED_NAMES_YES, "1"},
        {-1, NULL}
 };
 
+static const struct enum_list enum_ntlm_auth[] = {
+       {NTLM_AUTH_DISABLED, "disabled"},
+       {NTLM_AUTH_NTLMV2_ONLY, "ntlmv2-only"},
+       {NTLM_AUTH_NTLMV2_ONLY, "no"},
+       {NTLM_AUTH_NTLMV2_ONLY, "false"},
+       {NTLM_AUTH_NTLMV2_ONLY, "0"},
+       {NTLM_AUTH_ON, "ntlmv1-permitted"},
+       {NTLM_AUTH_ON, "yes"},
+       {NTLM_AUTH_ON, "true"},
+       {NTLM_AUTH_ON, "1"},
+       {NTLM_AUTH_MSCHAPv2_NTLMV2_ONLY, "mschapv2-and-ntlmv2-only"},
+       {-1, NULL}
+};
+
 /* Note: We do not initialise the defaults union - it is not allowed in ANSI C
  *
  * NOTE: Handling of duplicated (synonym) parameters: