summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-05-06 08:06:53 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-06-08 12:55:29 +0200
commit37a84884634e6e969c3617dac7fa1e463f42177b (patch)
tree7d5d9b470867ae8b1e973d38f5dd4f35bd2d063c /src/providers/data_provider.h
parentda2d33f81746a9bf8abd97becaf17005e4f89d2c (diff)
downloadsssd-37a84884634e6e969c3617dac7fa1e463f42177b.tar.gz
sssd-37a84884634e6e969c3617dac7fa1e463f42177b.tar.xz
sssd-37a84884634e6e969c3617dac7fa1e463f42177b.zip
DP: Add a function to inherit DP options, if set
Related to: https://fedorahosted.org/sssd/ticket/2644 Adds a utility function that checks if a DP option is present in the subdomain_inherit list. If it is, then the option is set from source to destination dp_option array. Reviewed-by: Pavel Reichl <preichl@redhat.com> (cherry picked from commit b3d110fbc424a03674a6e50e489a7cbab9702f0b)
Diffstat (limited to 'src/providers/data_provider.h')
-rw-r--r--src/providers/data_provider.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h
index 5df493e9d..657d2b798 100644
--- a/src/providers/data_provider.h
+++ b/src/providers/data_provider.h
@@ -277,6 +277,11 @@ struct dp_option {
#define DP_OPTION_TERMINATOR { NULL, 0, NULL_STRING, NULL_STRING }
+void dp_option_inherit(char **inherit_opt_list,
+ int option,
+ struct dp_option *parent_opts,
+ struct dp_option *subdom_opts);
+
int dp_get_options(TALLOC_CTX *memctx,
struct confdb_ctx *cdb,
const char *conf_path,