From 29ca66565498fabef6ae09746f63006af7849c0d Mon Sep 17 00:00:00 2001 From: Valery Komarov Date: Mon, 11 Apr 2011 16:20:09 +0400 Subject: [PATCH] Fix Issue 2 --- ngx_http_auth_ldap_module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ngx_http_auth_ldap_module.c b/ngx_http_auth_ldap_module.c index a90471f..fb65ab1 100644 --- a/ngx_http_auth_ldap_module.c +++ b/ngx_http_auth_ldap_module.c @@ -282,6 +282,10 @@ ngx_http_auth_ldap_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) { ngx_http_auth_ldap_loc_conf_t *prev = parent; ngx_http_auth_ldap_loc_conf_t *conf = child; + if (conf->realm.data == NULL) { + conf->realm = prev->realm; + } + ngx_conf_merge_str_value(conf->url, prev->url, "ldap://localhost/"); ngx_conf_merge_str_value(conf->bind_dn, prev->bind_dn, ""); ngx_conf_merge_str_value(conf->bind_dn_passwd, prev->bind_dn_passwd, "");