summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-03-28 11:46:44 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-03-28 15:07:05 -0400
commit419ddca29f074cf446c316b735fbbafc59084458 (patch)
tree76f99ca96486364f8c8fba2e0c32ebde9463b28e /src
parent65e8f538ad35ba7d86cd9e60a3d86aec34537027 (diff)
downloadsssd-419ddca29f074cf446c316b735fbbafc59084458.tar.gz
sssd-419ddca29f074cf446c316b735fbbafc59084458.tar.bz2
sssd-419ddca29f074cf446c316b735fbbafc59084458.zip
Add terminator for dp_option
Diffstat (limited to 'src')
-rw-r--r--src/providers/data_provider.h2
-rw-r--r--src/providers/ipa/ipa_opts.h9
-rw-r--r--src/providers/krb5/krb5_opts.h3
-rw-r--r--src/providers/ldap/ldap_opts.h3
4 files changed, 12 insertions, 5 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h
index f70d556a..d119c2b5 100644
--- a/src/providers/data_provider.h
+++ b/src/providers/data_provider.h
@@ -257,6 +257,8 @@ struct dp_option {
union dp_opt_value val;
};
+#define DP_OPTION_TERMINATOR { NULL, 0, NULL_STRING, NULL_STRING }
+
int dp_get_options(TALLOC_CTX *memctx,
struct confdb_ctx *cdb,
const char *conf_path,
diff --git a/src/providers/ipa/ipa_opts.h b/src/providers/ipa/ipa_opts.h
index 0b6cce1f..7f858e2f 100644
--- a/src/providers/ipa/ipa_opts.h
+++ b/src/providers/ipa/ipa_opts.h
@@ -42,7 +42,8 @@ struct dp_option ipa_basic_opts[] = {
{ "ipa_hbac_refresh", DP_OPT_NUMBER, { .number = 5 }, NULL_NUMBER },
{ "ipa_hbac_treat_deny_as", DP_OPT_STRING, { "DENY_ALL" }, NULL_STRING },
{ "ipa_hbac_support_srchost", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE },
- { "ipa_automount_location", DP_OPT_STRING, { "default" }, NULL_STRING }
+ { "ipa_automount_location", DP_OPT_STRING, { "default" }, NULL_STRING },
+ DP_OPTION_TERMINATOR
};
struct dp_option ipa_def_ldap_opts[] = {
@@ -110,7 +111,8 @@ struct dp_option ipa_def_ldap_opts[] = {
{ "ldap_deref_threshold", DP_OPT_NUMBER, { .number = 10 }, NULL_NUMBER },
{ "ldap_sasl_canonicalize", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE },
{ "ldap_connection_expire_timeout", DP_OPT_NUMBER, { .number = 900 }, NULL_NUMBER },
- { "ldap_disable_paging", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE }
+ { "ldap_disable_paging", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE },
+ DP_OPTION_TERMINATOR
};
struct sdap_attr_map ipa_attr_map[] = {
@@ -223,7 +225,8 @@ struct dp_option ipa_def_krb5_opts[] = {
{ "krb5_renew_interval", DP_OPT_NUMBER, NULL_NUMBER, NULL_NUMBER },
{ "krb5_use_fast", DP_OPT_STRING, NULL_STRING, NULL_STRING },
{ "krb5_fast_principal", DP_OPT_STRING, NULL_STRING, NULL_STRING },
- { "krb5_canonicalize", DP_OPT_BOOL, BOOL_TRUE, BOOL_TRUE }
+ { "krb5_canonicalize", DP_OPT_BOOL, BOOL_TRUE, BOOL_TRUE },
+ DP_OPTION_TERMINATOR
};
struct sdap_attr_map ipa_service_map[] = {
diff --git a/src/providers/krb5/krb5_opts.h b/src/providers/krb5/krb5_opts.h
index 9c3292fe..7f47290c 100644
--- a/src/providers/krb5/krb5_opts.h
+++ b/src/providers/krb5/krb5_opts.h
@@ -40,7 +40,8 @@ struct dp_option default_krb5_opts[] = {
{ "krb5_renew_interval", DP_OPT_NUMBER, NULL_NUMBER, NULL_NUMBER },
{ "krb5_use_fast", DP_OPT_STRING, NULL_STRING, NULL_STRING },
{ "krb5_fast_principal", DP_OPT_STRING, NULL_STRING, NULL_STRING },
- { "krb5_canonicalize", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE }
+ { "krb5_canonicalize", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE },
+ DP_OPTION_TERMINATOR
};
#endif /* KRB5_OPTS_H_ */
diff --git a/src/providers/ldap/ldap_opts.h b/src/providers/ldap/ldap_opts.h
index f6208a3d..b1015534 100644
--- a/src/providers/ldap/ldap_opts.h
+++ b/src/providers/ldap/ldap_opts.h
@@ -94,7 +94,8 @@ struct dp_option default_basic_opts[] = {
{ "ldap_deref_threshold", DP_OPT_NUMBER, { .number = 10 }, NULL_NUMBER },
{ "ldap_sasl_canonicalize", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE },
{ "ldap_connection_expire_timeout", DP_OPT_NUMBER, { .number = 900 }, NULL_NUMBER },
- { "ldap_disable_paging", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE }
+ { "ldap_disable_paging", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE },
+ DP_OPTION_TERMINATOR
};
struct sdap_attr_map generic_attr_map[] = {