diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-05-06 08:06:53 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-06-05 16:39:26 +0200 |
commit | b3d110fbc424a03674a6e50e489a7cbab9702f0b (patch) | |
tree | bd51b61a75a3e6ffe90af8a9f30b9f192efb6175 /src/providers/data_provider.h | |
parent | 1711cbfd2e36d44af1ae50e3a2beeec3a1f0b5e8 (diff) | |
download | sssd-b3d110fbc424a03674a6e50e489a7cbab9702f0b.tar.gz sssd-b3d110fbc424a03674a6e50e489a7cbab9702f0b.tar.xz sssd-b3d110fbc424a03674a6e50e489a7cbab9702f0b.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>
Diffstat (limited to 'src/providers/data_provider.h')
-rw-r--r-- | src/providers/data_provider.h | 5 |
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, |