diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-07-23 05:30:34 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-08-14 23:54:44 +0200 |
commit | 4f2a07c422fa357ef6651bca8c48b8005280fa1d (patch) | |
tree | d2dcb2a619c5898f70fa508df8571b7a2d6e23e6 /src/providers/ipa | |
parent | e4d6e9ccac14044d6bcd5a0dce7f45fdfab6bf3d (diff) | |
download | sssd-4f2a07c422fa357ef6651bca8c48b8005280fa1d.tar.gz sssd-4f2a07c422fa357ef6651bca8c48b8005280fa1d.tar.xz sssd-4f2a07c422fa357ef6651bca8c48b8005280fa1d.zip |
DYNDNS: remove zone command
Remove zone command from message to nsupsate. This command is generally
used to hint nsupdate. In correctly configured environment such
information should be obtained via DNS.
If DNS does not provide necessary information we give other hints.
For more details see:
https://fedorahosted.org/sssd/wiki/DesignDocs/DDNSMessagesUpdate
Resolves:
https://fedorahosted.org/sssd/ticket/2495
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_dyndns.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c index 83009ff2a..e7026eb27 100644 --- a/src/providers/ipa/ipa_dyndns.c +++ b/src/providers/ipa/ipa_dyndns.c @@ -153,9 +153,7 @@ ipa_dyndns_update_send(struct ipa_options *ctx) struct ipa_dyndns_update_state *state; struct tevent_req *req, *subreq; struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx; - char *dns_zone; const char *servername; - int i; DEBUG(SSSDBG_TRACE_FUNC, "Performing update\n"); @@ -175,19 +173,6 @@ ipa_dyndns_update_send(struct ipa_options *ctx) } state->ipa_ctx->dyndns_ctx->last_refresh = time(NULL); - dns_zone = dp_opt_get_string(ctx->basic, IPA_DOMAIN); - if (!dns_zone) { - ret = EIO; - goto done; - } - - /* The DNS zone for IPA is the lower-case - * version of the IPA domain - */ - for (i = 0; dns_zone[i] != '\0'; i++) { - dns_zone[i] = tolower(dns_zone[i]); - } - if (strncmp(ctx->service->sdap->uri, "ldap://", 7) != 0) { DEBUG(SSSDBG_CRIT_FAILURE, "Unexpected format of LDAP URI.\n"); @@ -209,7 +194,6 @@ ipa_dyndns_update_send(struct ipa_options *ctx) DP_OPT_DYNDNS_IFACE), dp_opt_get_string(ctx->basic, IPA_HOSTNAME), - dns_zone, dp_opt_get_string(ctx->basic, IPA_KRB5_REALM), servername, |