summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJustin Stephenson <jstephen@redhat.com>2016-10-24 18:04:11 -0400
committerJakub Hrozek <jhrozek@redhat.com>2017-02-22 12:21:06 +0100
commitd694d4fdcc81f24c2f9e3bb5a0dbe0a52498f196 (patch)
tree40e94958a1b4f0213c8dd6171db30008966cc079 /src/providers
parentfccd8f9ab7a0ac9868c43ea0e8c3af142b2809fa (diff)
downloadsssd-d694d4fdcc81f24c2f9e3bb5a0dbe0a52498f196.tar.gz
sssd-d694d4fdcc81f24c2f9e3bb5a0dbe0a52498f196.tar.xz
sssd-d694d4fdcc81f24c2f9e3bb5a0dbe0a52498f196.zip
DYNDNS: Correct debug log message of realm
If the realm is not added to the nsupdate message, the SSSD Debug log message should inform about utilizing autodiscovered realm. Resolves: https://fedorahosted.org/sssd/ticket/3220 Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/be_dyndns.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/be_dyndns.c b/src/providers/be_dyndns.c
index 07dc3339d..ee2641568 100644
--- a/src/providers/be_dyndns.c
+++ b/src/providers/be_dyndns.c
@@ -435,11 +435,15 @@ nsupdate_msg_create_common(TALLOC_CTX *mem_ctx, const char *realm,
/* Add the server, realm and headers */
update_msg = talloc_asprintf(tmp_ctx, "server %s\n%s",
servername, realm_directive);
- } else {
+ } else if (realm != NULL) {
DEBUG(SSSDBG_FUNC_DATA,
"Creating update message for realm [%s].\n", realm);
/* Add the realm headers */
update_msg = talloc_asprintf(tmp_ctx, "%s", realm_directive);
+ } else {
+ DEBUG(SSSDBG_FUNC_DATA,
+ "Creating update message for auto-discovered realm.\n");
+ update_msg = talloc_asprintf(tmp_ctx, "%s", realm_directive);
}
talloc_free(realm_directive);
if (update_msg == NULL) {