]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Be more forgiving about URLs with empty base DNs Closes #1329
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 19 Oct 2015 12:03:35 +0000 (08:03 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 19 Oct 2015 12:03:50 +0000 (08:03 -0400)
src/modules/rlm_ldap/rlm_ldap.c

index d70d00571f2f1c14650fefb1424edd2c3634a473..1b52930576274cb51a47ba9f858b9e2298ad9ef7 100644 (file)
@@ -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;
                        }