Browse Source

* fix passing filter template instead actual filter

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

2
src/ldapauth.c

@ -147,7 +147,7 @@ oal_check_cred(oal_config_t * const config,
/* TODO: expand searchfilter */ /* TODO: expand searchfilter */
lrc = ldap_search_s(sld, config->basedn, LDAP_SCOPE_SUBTREE, config->userfilter, searchattr, 1, &res); lrc = ldap_search_s(sld, config->basedn, LDAP_SCOPE_SUBTREE, filter, searchattr, 1, &res);
if (lrc != LDAP_SUCCESS) { if (lrc != LDAP_SUCCESS) {
snprintf(config->error, sizeof(config->error), "ldap search failed: %s", ldap_err2string(lrc)); snprintf(config->error, sizeof(config->error), "ldap search failed: %s", ldap_err2string(lrc));
goto cleanup; /* TODO */ goto cleanup; /* TODO */

Loading…
Cancel
Save