summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_connection.c2
-rw-r--r--src/providers/ldap/sdap_fd_events.c5
-rw-r--r--src/util/sss_ldap.c5
3 files changed, 7 insertions, 5 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c
index e97bcf15..cc3e13d0 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -294,7 +294,7 @@ static void sdap_sys_connect_done(struct tevent_req *subreq)
&ber_sasl_minssf);
if (lret != LDAP_OPT_SUCCESS) {
DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to set LDAP MIN SSF option "
- "to %lu\n", sasl_minssf));
+ "to %d\n", sasl_minssf));
goto fail;
}
}
diff --git a/src/providers/ldap/sdap_fd_events.c b/src/providers/ldap/sdap_fd_events.c
index 19001947..5e4ea79b 100644
--- a/src/providers/ldap/sdap_fd_events.c
+++ b/src/providers/ldap/sdap_fd_events.c
@@ -301,8 +301,9 @@ errno_t sdap_call_conn_cb(const char *uri,int fd, struct sdap_handle *sh)
ret = ldap_url_parse(uri, &lud);
if (ret != 0) {
ber_sockbuf_free(sb);
- DEBUG(1, ("ldap_url_parse failed to validate [%s] on fd [%ld].\n",
- uri, fd));
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("ldap_url_parse failed to validate [%s] on fd [%d].\n",
+ uri, fd));
return EFAULT;
}
diff --git a/src/util/sss_ldap.c b/src/util/sss_ldap.c
index dea38eaa..6d7b0907 100644
--- a/src/util/sss_ldap.c
+++ b/src/util/sss_ldap.c
@@ -420,8 +420,9 @@ static void sss_ldap_init_sys_connect_done(struct tevent_req *subreq)
lret = ldap_init_fd(state->sd, LDAP_PROTO_TCP, state->uri, &state->ldap);
if (lret != LDAP_SUCCESS) {
- DEBUG(1, ("ldap_init_fd failed: %s. [%ld][%s]\n",
- sss_ldap_err2string(lret), state->sd, state->uri));
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("ldap_init_fd failed: %s. [%d][%s]\n",
+ sss_ldap_err2string(lret), state->sd, state->uri));
ret = lret == LDAP_SERVER_DOWN ? ETIMEDOUT : EIO;
goto fail;
}