jano
20.03.08, 18:30
Hi
Ich würde gerne die http/htaccess login daten in einem cgi-script benutzen.
Meine htaccess-Auth läuft über eine mysql Datenbank, dank mod_dbd, mod_authn_dbd.
Laut den docs von apache.org werden bei der mysql Abfrage die Logindaten als "environment variables" gespeichert.
http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html
Whenever a query is made to the database server, all columns returned by the query are placed in the environment, using environment variables with the prefix "AUTHENTICATE_".
If a database query for example returned the username, full name and telephone number of a user, a CGI program will have access to this information without the need to make a second independent database query to gather this additional information.
This has the potential to dramatically simplify the coding and configuration required in some web applications.
also logge ich mich ein und greife auf das cgi-script zu
print $ENV{'AUTHENTICATE_user_name'} //user_name, so heißt die user-Spalte in der Datenbank
im cgi-script liefert keine Ausgabe.
AUTHENTICATE wird auch nicht in meinem Script aufgeführt, welches alle Variablen ausgibt.
Ich hab Apache 2.2.8
Gruß
Jan
Ich würde gerne die http/htaccess login daten in einem cgi-script benutzen.
Meine htaccess-Auth läuft über eine mysql Datenbank, dank mod_dbd, mod_authn_dbd.
Laut den docs von apache.org werden bei der mysql Abfrage die Logindaten als "environment variables" gespeichert.
http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html
Whenever a query is made to the database server, all columns returned by the query are placed in the environment, using environment variables with the prefix "AUTHENTICATE_".
If a database query for example returned the username, full name and telephone number of a user, a CGI program will have access to this information without the need to make a second independent database query to gather this additional information.
This has the potential to dramatically simplify the coding and configuration required in some web applications.
also logge ich mich ein und greife auf das cgi-script zu
print $ENV{'AUTHENTICATE_user_name'} //user_name, so heißt die user-Spalte in der Datenbank
im cgi-script liefert keine Ausgabe.
AUTHENTICATE wird auch nicht in meinem Script aufgeführt, welches alle Variablen ausgibt.
Ich hab Apache 2.2.8
Gruß
Jan