Ian Holsman wrote: > Nicolae Mihalache wrote: > >> Hi! >> >> First of all, this is my first attempt to modify an Apache module. >> I'm tring to modify mod_mysql_auth to set some environment variables >> that will be used by the CGI scripts and also by the mod_autoindex >> (wich I will also modify) to change the output based on the >> priviledge of the authenticated user. >> my modification goes into mysql_check_auth and is basically: >> table *e = r->subprocess_env; >> ap_table_setn(e,"SA_PRIV",ap_pstrdup(r->pool, data[0])); >> where data[0] is previously obtained from database. > > > can you do me a favor and try running your page with a ssi-enable page > with the command <!--#printenv --> in it and see if your note works > it will then tell us if there is a bug in your module or cgi. > TIA > ian > I did that, and the variables show up in printenv directive. Very strange, my cgi is as simple as that:
#!/bin/sh echo "Content-Type: text/plain" echo echo env Any ideea why this one does not show the variables? Is mod_cgi restrictive about the variables it exports to cgi scripts? Thank you, Nicolae