Changeset 1517
- Timestamp:
- 01/14/2007 09:46:33 AM (21 months ago)
- Location:
- trunk/src
- Files:
-
- 3 modified
-
http_auth.c (modified) (1 diff)
-
http_auth.h (modified) (1 diff)
-
mod_auth.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/http_auth.c
r1495 r1517 736 736 } 737 737 738 738 if (p->conf.auth_ldap_allow_empty_pw != 1 && pw[0] == '\0') 739 return -1; 739 740 740 741 /* build filter */ -
trunk/src/http_auth.h
r1349 r1517 37 37 buffer *auth_ldap_cafile; 38 38 unsigned short auth_ldap_starttls; 39 unsigned short auth_ldap_allow_empty_pw; 39 40 40 41 unsigned short auth_debug; -
trunk/src/mod_auth.c
r1496 r1517 116 116 PATCH_OPTION(auth_ldap_cafile); 117 117 PATCH_OPTION(auth_ldap_starttls); 118 PATCH_OPTION(auth_ldap_allow_empty_pw); 118 119 #ifdef USE_LDAP 119 120 PATCH_OPTION(ldap); … … 163 164 } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("auth.backend.ldap.starttls"))) { 164 165 PATCH_OPTION(auth_ldap_starttls); 166 } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("auth.backend.ldap.allow-empty-pw"))) { 167 PATCH_OPTION(auth_ldap_allow_empty_pw); 165 168 } 166 169 } … … 314 317 { "auth.backend.ldap.bind-dn", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, 315 318 { "auth.backend.ldap.bind-pw", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, /* 10 */ 319 { "auth.backend.ldap.allow-empty-pw", NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, 316 320 { "auth.backend.htdigest.userfile", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, 317 321 { "auth.backend.htpasswd.userfile", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, … … 361 365 cv[7].destination = s->auth_ldap_cafile; 362 366 cv[8].destination = &(s->auth_ldap_starttls); 363 cv[9].destination = s->auth_ldap_binddn; 364 cv[10].destination = s->auth_ldap_bindpw; 365 cv[11].destination = s->auth_htdigest_userfile; 366 cv[12].destination = s->auth_htpasswd_userfile; 367 cv[13].destination = &(s->auth_debug); 367 cv[9].destination = s->auth_ldap_binddn; 368 cv[10].destination = s->auth_ldap_bindpw; 369 cv[11].destination = &(s->auth_ldap_allow_empty_pw); 370 cv[12].destination = s->auth_htdigest_userfile; 371 cv[13].destination = s->auth_htpasswd_userfile; 372 cv[14].destination = &(s->auth_debug); 368 373 369 374 p->config_storage[i] = s;

