diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-09 14:20:28 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-03 20:22:37 +0200 |
commit | 04868f1573f4b26ef34610b6d7069172f93bd8ab (patch) | |
tree | 25585171d9bfde286ffbd0add7a2fad64240e6ed /src/providers/ipa/ipa_dyndns.c | |
parent | 9cb46bc62f22e0104f1b41a423b014c281ef5fc2 (diff) | |
download | sssd-04868f1573f4b26ef34610b6d7069172f93bd8ab.tar.gz sssd-04868f1573f4b26ef34610b6d7069172f93bd8ab.tar.bz2 sssd-04868f1573f4b26ef34610b6d7069172f93bd8ab.zip |
Convert IPA-specific options to be back-end agnostic
This patch introduces new options for dynamic DNS updates that are not
specific to any back end. The current ipa dyndns options are still
usable, just with a deprecation warning.
Diffstat (limited to 'src/providers/ipa/ipa_dyndns.c')
-rw-r--r-- | src/providers/ipa/ipa_dyndns.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c index 79918a26..8023b533 100644 --- a/src/providers/ipa/ipa_dyndns.c +++ b/src/providers/ipa/ipa_dyndns.c @@ -28,6 +28,7 @@ #include "providers/ipa/ipa_common.h" #include "providers/ipa/ipa_dyndns.h" #include "providers/data_provider.h" +#include "providers/dp_dyndns.h" void ipa_dyndns_update(void *pvt); @@ -135,16 +136,16 @@ ipa_dyndns_update_send(struct ipa_options *ctx) subreq = sdap_dyndns_update_send(state, sdap_ctx->be->ev, sdap_ctx->be, sdap_ctx, - dp_opt_get_string(ctx->basic, - IPA_DYNDNS_IFACE), + dp_opt_get_string(ctx->dyndns_ctx->opts, + DP_OPT_DYNDNS_IFACE), dp_opt_get_string(ctx->basic, IPA_HOSTNAME), dns_zone, dp_opt_get_string(ctx->basic, IPA_KRB5_REALM), servername, - dp_opt_get_int(ctx->basic, - IPA_DYNDNS_TTL), + dp_opt_get_int(ctx->dyndns_ctx->opts, + DP_OPT_DYNDNS_TTL), true); if (!subreq) { ret = EIO; |