From: Arran Cudbard-Bell Date: Mon, 19 Oct 2015 12:03:35 +0000 (-0400) Subject: Be more forgiving about URLs with empty base DNs Closes #1329 X-Git-Tag: release_3_0_11~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064faf49c2910d7328048af8c8f29cf428b3e8fe;p=thirdparty%2Ffreeradius-server.git Be more forgiving about URLs with empty base DNs Closes #1329 --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index d70d00571f2..1b529305762 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -865,7 +865,7 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance) return -1; } - if (ldap_url->lud_dn) { + if (ldap_url->lud_dn && (ldap_url->lud_dn[0] != '\0')) { cf_log_err_cs(conf, "Base DN cannot be specified via server URL"); goto ldap_url_error; }