|
From: Matt <fro...@ya...> - 2005-10-19 15:48:25
|
hey jamie, I did what you suggested but got the same error message. This is how my miniserv.conf look like port=10000 root=/usr/local/webmin-1.070 mimetypes=/usr/local/webmin-1.070/mime.types addtype_cgi=internal/cgi realm=Webmin Server logfile=/var/webmin/miniserv.log errorlog=/var/webmin/miniserv.error pidfile=/var/webmin/miniserv.pid logtime=168 ppath= ssl=1 env_WEBMIN_CONFIG=/etc/webmin no_testing_cookie=1 env_WEBMIN_VAR=/var/webmin atboot=1 logout=/etc/webmin/logout-flag listen=10000 denyfile=\.pl$ log=1 blockhost_failures=5 blockhost_time=60 syslog=1 session=1 userfile=/etc/webmin/miniserv.users keyfile=/etc/webmin/miniserv.pem passwd_file=/etc/shadow passwd_uindex=0 passwd_pindex=1 preroot=mscstyle3 no_pam=0 logouttime=30 passdelay=0 preroot_admin=watchstyle I rebooted the box just to make sure. Would it matter if my webmin was running on another port say 443. I have another machine running webmin @ 443 and it has the same problem. Am I doing something wrong? Thanks, Matt Jamie Cameron <jca...@we...> wrote: Ah, I see now .. you are running into a check in Webmin to ensure that cookies are enabled on the login page. To avoid this, add the line no_testing_cookie=1 to /etc/webmin/miniserv.conf , and then re-start Webmin. - Jamie On Wed, 2005-10-19 at 00:16, Matt wrote: I tried with Firefox and the error message was Error - No cookies Your browser does not support cookies, which are required for this web server to work in session authentication mode Again when I tried the second method, i.e just typing the IP Address in the URL without passing the username/password, getting the login screen and then typing the complete URL with username/password, it works fine. How is it that it is able to set cookies when only the IP Address is entered https://xxx.xxx.xxx.xxx:10000 and not with the complete URL https://xxx.xxx.xxx.xxx:10000/session_login.cgi?user=adminamp;pass=xxxxxxamp;log_account=10? Thanks, Matt Jamie Cameron <jca...@we...> wrote: You should try connecting in a browser other than IE, such as Firefox. IE hides the real error message from the web server, so it is hard to see what is going wrong.. - Jamie -----Original Message----- From: Matt Subj: Re: [webmin-l] Webmin Login Help Date: Tue 18 Oct 2005 5:09 am Size: 2K To: web...@li... Thanks a lot for the help. It worked fine for me. Another question is the first time I click the link https://xxx.xxx.xxx.xxx:10000/session_login.cgi?user=adminamp;pass=xxxxxxamp;log_account=10 , it comes up with an error saying The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed. But if I just give the link https://xxx.xxx.xxx.xxx:10000 and hit enter, it shows the login page which is fine. But after that clic k the above url with the username and password it works just fine. What is the reason it doesn't work initially? Does it need to set any cookies? Why does it work the second method. Any help or suggestion is highly appreciated. Matt Jamie Cameron jca...@we... wrote: On Sat, 2005-10-15 at 04:50, Matt wrote: I have a link of my web page to open a browser and log me into my machine running webmin without having to login. The url is https://xxx.xxx.xxx.xxx:10000/session_login.cgi?user=adminamp;pass=xxxxxxamp;log_account=10 Now I want to able to control which page is loaded by default depending on the value of log_account, for eg: if log_account=10, I want it to load Networking page and if log_account=20, I want it to load System page. Can I check the value of log_account or any other variable I pass? So can anyone explain how webmin's login process works and what file is executed after the login button on session_login.cgi has been clicked? You should be able to specify the page to go to after login already, by adding a URL parameter like : amp;page=/%3Fcat%3Dsystem to go to the system category. - Jamie ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list Yahoo! Music Unlimited - Access over 1 million songs. Try it free. --- message truncated --- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |