summaryrefslogtreecommitdiff
path: root/source3/web/cgi.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-07-08 12:56:21 +0200
committerJeremy Allison <jra@samba.org>2011-07-26 22:22:25 +0200
commitb7521dc7566fbd8bfb8a09f391ce0cd8c7f18e14 (patch)
tree8128785d00ee12119e34080c057b83d4e5bb03e5 /source3/web/cgi.c
parentcc86a11b9eb4cc5e3aeb45dbfe2edf3e9d05b7db (diff)
downloadsamba-b7521dc7566fbd8bfb8a09f391ce0cd8c7f18e14.tar.gz
samba-b7521dc7566fbd8bfb8a09f391ce0cd8c7f18e14.tar.bz2
samba-b7521dc7566fbd8bfb8a09f391ce0cd8c7f18e14.zip
s3 swat: Allow getting the user's HTTP auth password
Signed-off-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r--source3/web/cgi.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index cc31eef97e..4bd24b72f1 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -46,6 +46,7 @@ static char *query_string;
static const char *baseurl;
static char *pathinfo;
static char *C_user;
+static char *C_pass;
static bool inetd_server;
static bool got_request;
@@ -401,6 +402,7 @@ static bool cgi_handle_authorization(char *line)
/* Save the users name */
C_user = SMB_STRDUP(user);
+ C_pass = SMB_STRDUP(user_pass);
TALLOC_FREE(pass);
return True;
}
@@ -435,6 +437,13 @@ char *cgi_user_name(void)
return(C_user);
}
+/***************************************************************************
+return a ptr to the users password
+ ***************************************************************************/
+char *cgi_user_pass(void)
+{
+ return(C_pass);
+}
/***************************************************************************
handle a file download