Project

General

Profile

Feature #4 ยป lighttpd-1.3.13-valid-user.diff

valid-user support -- tigger - Anonymous, 2005-06-06 13:46

View differences:

/home/tigger/lighttpd-1.3.13/src/http_auth.c 2005-06-06 14:12:52.000000000 +0100
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
	/* valid-user */
318

  
319
	if (0 == strcmp(require->value->ptr, "valid-user"))
320
		return 0;
316 321
	
317 322
	/* user=name1|group=name3|host=name4 */
318 323
	
......
339 344
		}
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 */
344 354
		if (NULL == (eq = strchr(r, '='))) {
    (1-1/1)