[MAJOR] use the new auth framework for http stats
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Fri, 29 Jan 2010 18:29:32 +0000 (19:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 31 Jan 2010 18:14:09 +0000 (19:14 +0100)
commit8c8bd4593c95f54cbe42bf204b943a159810a74e
treed63928dc08a48982d5d3723f4df1e9442677b057
parentf9423ae43a42d8ae485af70159f4a536b8730a25
[MAJOR] use the new auth framework for http stats

Support the new syntax (http-request allow/deny/auth) in
http stats.

Now it is possible to use the same syntax is the same like in
the frontend/backend http-request access control:
 acl src_nagios src 192.168.66.66
 acl stats_auth_ok http_auth(L1)

 stats http-request allow if src_nagios
 stats http-request allow if stats_auth_ok
 stats http-request auth realm LB

The old syntax is still supported, but now it is emulated
via private acls and an aditional userlist.
include/common/uri_auth.h
include/proto/proto_http.h
include/types/proto_http.h
src/acl.c
src/cfgparse.c
src/haproxy.c
src/proto_http.c
src/uri_auth.c