Browse Source

* oal_connect : fix setting debug

master
Alex 'AdUser' Z 9 years ago
parent
commit
aae649ab16
  1. 2
      src/ldapauth.c

2
src/ldapauth.c

@ -90,7 +90,7 @@ oal_connect(LDAP ** ld,
snprintf(config->error, sizeof(config->error), "can't set follow referrals to 'off'"); snprintf(config->error, sizeof(config->error), "can't set follow referrals to 'off'");
return 1; return 1;
} }
if (ldap_set_option(*ld, LDAP_OPT_DEBUG_LEVEL, config->debug ? LDAP_OPT_ON : LDAP_OPT_OFF)) { if (ldap_set_option(*ld, LDAP_OPT_DEBUG_LEVEL, config->debug ? LDAP_OPT_ON : LDAP_OPT_OFF) != LDAP_OPT_SUCCESS) {
snprintf(config->error, sizeof(config->error), "can't set debug level for ldap conn"); snprintf(config->error, sizeof(config->error), "can't set debug level for ldap conn");
return 1; return 1;
} }

Loading…
Cancel
Save