summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2012-09-24 16:30:57 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-24 18:26:21 +0200
commit46d2643b60231ce8634c4683107649c07d3226a9 (patch)
treea1f83eab2e46bc9a4552d68bb667d894961f62cf /src/providers
parentedd6630a969fcd6ee2f4e69ebf7576926f040e48 (diff)
downloadsssd-46d2643b60231ce8634c4683107649c07d3226a9.tar.gz
sssd-46d2643b60231ce8634c4683107649c07d3226a9.tar.bz2
sssd-46d2643b60231ce8634c4683107649c07d3226a9.zip
Bad debug message when no dns_discovery_domain specified.
https://fedorahosted.org/sssd/ticket/920
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/fail_over.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index d776037a..f3bba37f 100644
--- a/src/providers/fail_over.c
+++ b/src/providers/fail_over.c
@@ -524,9 +524,9 @@ fo_add_srv_server(struct fo_service *service, const char *srv,
{
struct fo_server *server;
- DEBUG(SSSDBG_TRACE_FUNC, ("Adding new SRV server in domain '%s', to service '%s' using %s\n",
- discovery_domain ? discovery_domain : "unknown",
- service->name, proto));
+ DEBUG(SSSDBG_TRACE_FUNC,
+ ("Adding new SRV server to service '%s' using '%s'.\n",
+ service->name, proto));
DLIST_FOR_EACH(server, service->server_list) {
/* Compare user data only if user_data_cmp and both arguments
@@ -1110,6 +1110,10 @@ resolve_srv_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
case SRV_NEUTRAL: /* Request SRV lookup */
if (state->meta->srv_data->dns_domain == NULL) {
/* we need to look up our DNS domain first */
+ DEBUG(SSSDBG_TRACE_FUNC,
+ ("SRV resolution of service '%s'. "
+ "dns_discovery_domain not specified. Need to look it up.\n",
+ server->service->name));
subreq = resolve_get_domain_send(state, ev, ctx, resolv);
if (subreq == NULL) {
ret = ENOMEM;
@@ -1119,6 +1123,10 @@ resolve_srv_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
break;
}
/* we know the DNS domain, just do the lookup */
+ DEBUG(SSSDBG_TRACE_FUNC,
+ ("SRV resolution of service '%s'. "
+ "Will use DNS discovery domain '%s'\n",
+ server->service->name, state->meta->srv_data->dns_domain));
resolve_srv_cont(req);
break;
case SRV_RESOLVE_ERROR: /* query could not be resolved but don't retry yet */