diff options
-rw-r--r-- | ipa-client/ipa-join.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipa-client/ipa-join.c b/ipa-client/ipa-join.c index 46f64572d..ac8251fef 100644 --- a/ipa-client/ipa-join.c +++ b/ipa-client/ipa-join.c @@ -208,8 +208,11 @@ connect_ldap(const char *hostname, const char *binddn, const char *bindpw) { struct berval bindpw_bv; if (debug) { - ldapdebug=2; + ldapdebug = 2; ret = ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &ldapdebug); + if (ret != LDAP_OPT_SUCCESS) { + goto fail; + } } if (ldap_set_option(NULL, LDAP_OPT_X_TLS_CACERTFILE, CAFILE) != LDAP_OPT_SUCCESS) |