Changeset 491
- Timestamp:
- 07/31/2005 11:49:26 AM (3 years ago)
- Files:
-
- 1 modified
-
branches/lighttpd-1.3.x/src/http_auth.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.3.x/src/http_auth.c
r372 r491 310 310 return -1; 311 311 } 312 312 313 313 req = ((data_array *)(p->conf.auth_require->data[i]))->value; 314 314 315 315 require = (data_string *)array_get_element(req, "require"); 316 317 /* if we get here, the user we got a authed user */ 318 if (0 == strcmp(require->value->ptr, "valid-user")) { 319 return 0; 320 } 316 321 317 322 /* user=name1|group=name3|host=name4 */ … … 340 345 341 346 /* from r to r + r_len is a rule */ 347 348 if (0 == strncmp(r, "valid-user", r_len)) { 349 log_error_write(srv, __FILE__, __LINE__, "s", "valid-user cannot be combined with other require rules"); 350 return -1; 351 } 342 352 343 353 /* search for = in the rules */

