From 95b9bb0f69fa4ed2bc2c414a614d1723b1e59e21 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 20 Mar 2010 23:51:51 +0000 Subject: uhttpd: add basic auth infrastructure --- contrib/package/uhttpd/src/uhttpd-cgi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/package/uhttpd/src/uhttpd-cgi.c') diff --git a/contrib/package/uhttpd/src/uhttpd-cgi.c b/contrib/package/uhttpd/src/uhttpd-cgi.c index a89dffa61..9e9e96410 100644 --- a/contrib/package/uhttpd/src/uhttpd-cgi.c +++ b/contrib/package/uhttpd/src/uhttpd-cgi.c @@ -248,6 +248,10 @@ void uh_cgi_request(struct client *cl, struct http_request *req, struct path_inf /* request url */ setenv("REQUEST_URI", req->url, 1); + /* remote user */ + if( req->realm ) + setenv("REMOTE_USER", req->realm->user, 1); + /* request message headers */ foreach_header(i, req->headers) { -- cgit v1.2.3