summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_fd_events.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_fd_events.c b/src/providers/ldap/sdap_fd_events.c
index ebec544f..05ea0b5c 100644
--- a/src/providers/ldap/sdap_fd_events.c
+++ b/src/providers/ldap/sdap_fd_events.c
@@ -103,8 +103,13 @@ static int sdap_ldap_connect_callback_add(LDAP *ld, Sockbuf *sb,
DEBUG(1, ("ber_sockbuf_ctrl failed.\n"));
return EINVAL;
}
- DEBUG(9, ("New LDAP connection to [%s] with fd [%d].\n",
- ldap_url_desc2str(srv), ber_fd));
+
+ if (debug_level >= 7) {
+ char *uri = ldap_url_desc2str(srv);
+ DEBUG(7, ("New LDAP connection to [%s] with fd [%d].\n",
+ uri, ber_fd));
+ free(uri);
+ }
fd_event_item = talloc_zero(cb_data, struct fd_event_item);
if (fd_event_item == NULL) {