LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   auto login for webmin (https://www.linuxquestions.org/questions/linux-newbie-8/auto-login-for-webmin-713910/)

tpau86 03-23-2009 06:31 PM

auto login for webmin
 
Hi,

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:

https://172.31.0.1:10000/session_log...23&page=/bind8

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 https://172.31.0.1:10000 and then run use the above URL https://172.31.0.1:10000/session_log...23&page=/bind8 it works, so the index page is caching something server side?


Phil

ceantuco 03-24-2009 11:05 AM

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

tpau86 03-24-2009 11:38 AM

Hi,

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?

cheers
Phil

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 miniserv.pl 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.