LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-15-2007, 06:22 AM   #1
Chrizzieej
Member
 
Registered: Jan 2007
Location: Netherlands, The
Posts: 51

Rep: Reputation: 15
Automatic login Webmin


Hello folks,

Is it possible to automatic login to Webmin by sending your username and password through an URL? I tried http://www.test.com:10000?user=test&pass=123456 but then I get an error because of maintainence.

I'm asking this because our Webmin has to integrate to our intranet, which is AD authenticated.

Greetings Chris
 
Old 11-15-2007, 09:35 AM   #2
MrsVeteran
LQ Newbie
 
Registered: May 2002
Distribution: Custom Debian/RH 7.2 1/2 (RH 7.2 w/KDE 3)
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by Chrizzieej View Post
Hello folks,

Is it possible to automatic login to Webmin by sending your username and password through an URL? I tried http://www.test.com:10000?user=test&pass=123456 but then I get an error because of maintainence.

I'm asking this because our Webmin has to integrate to our intranet, which is AD authenticated.
Are you sure that the variables in the login form are, indeed "user" and "pass" and that there are no hidden variables you're missing? Also, I haven't used Webmin for awhile, but is it possible that it only supports "POST" and not "GET?" If this last is the case, you'll need to POST the username/password to webmin, or hack Webmin to allow GET. Does that make sense?

I've used Webmin and I've integrated a lot of different user/pw type systems together like you're suggesting on an intranet, and haven't really had any problems, although sometimes you do need to do a bit of code-changing with one thing or another to use your internal main authentication system...

MrsV
 
Old 11-15-2007, 10:56 AM   #3
scorp1us
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
It may or may not be possible.

If the scripts are ONLY looking at POSTed parameters, it will not work. If the script looks at combined GET/POSTed paramters it will likely work. You can always change the script to look for GET in addition to POST.
 
Old 02-17-2009, 03:23 PM   #4
doobiest
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
This isn't working because you're not posting to the right page.

Look at the login page's source (i've stripped out all but form elements)

<form class='ui_form' action='/session_login.cgi' method=post >
<input class='ui_hidden' type=hidden name="page" value="/">
<input class='ui_textbox' name="user" value="" size=20 >
<input class='ui_password' type=password name="pass" value="" size=20 >
<input class='ui_submit' type=submit value="Login">
<input type=reset value="Clear">
</form>


Action equals /session_login.cgi so that's the URL you have to post to, so yourdomain.com/session_login.cgi?user=username&pass=password.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmin - Cant login from outside christopher_c Linux - Newbie 10 10-31-2007 03:33 PM
webmin cant login from just 1 pc drokmed Linux - Software 1 11-24-2006 11:15 AM
Login to webmin d4d4n9 Mandriva 6 12-24-2003 06:56 PM
Webmin automatic password generator ToBe Linux - General 2 08-26-2003 09:42 AM
Automatic login Mad Echidna Linux - Software 1 12-17-2002 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration