patch for cgi: change authentication env-variable
Christian Schneemann
schneemann at b1-systems.de
Mon Nov 1 13:04:59 CET 2010
Hi,
--- cgi/cgiauth.c.orig 2010-10-30 16:43:36.000000000 +0200
+++ cgi/cgiauth.c 2010-11-01 11:06:12.000000000 +0100
@@ -36,7 +36,7 @@
extern int use_authentication;
extern int use_ssl_authentication;
-
+extern char cgi_user_env[MAX_INPUT_BUFFER];
/* get current authentication information */
@@ -64,7 +64,7 @@
temp_ptr=getenv("SSL_CLIENT_S_DN_CN");
}
else{
- temp_ptr=getenv("REMOTE_USER");
+ temp_ptr=getenv(cgi_user_env);
}
if(temp_ptr==NULL){
authinfo->username="";
--
Christian Schneemann
Linux Consultant & Developer
Tel.: +49-175-7250665
Mail: schneemann at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgiauth.c.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20101101/c3cbab24/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgiutils.c.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20101101/c3cbab24/attachment-0001.bin>
-------------- next part --------------
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list