-   Linux - Newbie (
-   -   auto login for webmin (

tpau86 03-23-2009 06:31 PM

auto login for webmin

Got the latest download for webmin and i am working on a web portal for DNS updates; my last big issue is getting the auto login working.

The login is via a reverse proxy and the URL I am testing is:

this URL fails with an internal server error 500.

I'm not runnig the test via the reverse proxy so i know thats not the issue. I think the session_login.cgi is doing something before hand but i cant work out how to make it work.

If anyone could help; would be great to here from you

Also, if i visit the page and then run use the above URL it works, so the index page is caching something server side?


ceantuco 03-24-2009 11:05 AM

Hey Phil, what server are you using? (Distro)

tpau86 03-24-2009 11:38 AM


using opensuse 11.1, not that i think that matters a great deal. I know what the issues is in that the webmin session_login.cgi sends out a SID cookie that the clients uses from then on in. The issues is with the direct URL login, there is no session cookie so it fails.

perl i not my strong point at all so i cant see what is going on !!!

anyone done this before?


ceantuco 03-24-2009 11:48 AM

Hi Phil,

I just asked because I was wondering what kind of server you are using. I just installed UBUNTU server but I'm so used to OpenSuse (YaST) and I find this ubuntu a little hard to configure. are you using OpenSuse with GUI or without it?

kulims 06-08-2009 03:16 PM

If you have'nt resolved this yet, edit and comment the first #if# block from #handle_login# sub like below:

# check if the test cookie is set

#if ($header{'cookie'} !~ /testing=1/ && $vu &&
# !$config{'no_testing_cookie'} && !$notest) {
# &http_error(500, "No cookies",
# "Your browser does not support cookies, ".
# "which are required for this web server to ".
# "work in session authentication mode");
# }

All times are GMT -5. The time now is 01:44 AM.