Web Auto-Login help needed

Author Message
ChadR

  • Total Posts : 24
  • Scores: 0
  • Reward points : 0
  • Joined: 8/20/2007
  • Status: offline
Web Auto-Login help needed Saturday, November 03, 2007 10:03 AM (permalink)
0
Hi all, I am hoping there's someone on this board that can help me with this long standing problem I've been having.  My company recently purchased 4 IP-KVM devices to allow our management staff the ability to log on to their contracted companies network for the purpose of such things as timecard submitting and on-line training courses.  The devices are not very user friendly and we'd like to alleviate some of that for our users by making the process more automated.  The KVM's run an internal website which locally authenticates the users to the device and allows them to attach to the connected laptop computers on the other network.  The pages are ASP scripted and I am having a lot of trouble hacking them to auto-login to the devices.  The initial authentication page, which I intend to host on our internal network's intranet web server (it is actually the code from the KVM device which the links point to the URL of the device,) is as follows:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 <title>Authentication</title>
 <link href="http://10.64.3.100/style.asp" type="text/css" rel="STYLESHEET">
 
 <script type="text/javascript">
    <!--
    if (top.frames.length!=0)
    top.location=self.document.location;
    // -->
 </script>
 <script>document.auth.Login();</script>
 <link rel="SHORTCUT ICON" href="http://10.64.3.100/favicon.ico">
 
 </head>
 <body class="auth">
 <form action="http://10.64.3.100/auth.asp" method="POST">
 <input type="hidden" name="nickname" value="">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
 <tr><td colspan="2">&nbsp;</td></tr>
 <tr class="authLogo" >
 <td colspan="2" align="center">
   <img src="http://10.64.3.100/logo.gif" alt="LOGO">
 </td>
 </tr>
 <tr><td colspan="2" align="center"><br><span class="rsp_message">&nbsp;</span><!-- response_code_begin ERIC_RESPONSE_OK response_code_end response_msg_begin  response_msg_end  --><br></td></tr>
 <tr>
 <td colspan="2" align="center" valign="top">
   <table class="authInner" border="0" cellpadding="0" cellspacing="0">
   <tr>
     <td><img src="http://10.64.3.100/corner_lt.jpg" width="45" height="45" alt=""></td>
     <td class="authHeading" align="center">Authenticate with Login and Password!</td>
     <td><img src="http://10.64.3.100/corner_rt.jpg" width="45" height="45" alt=""></td>
   </tr>            
   <tr>
     <td>&nbsp;</td>
     <td>
 <table class="authInner" border="0" cellpadding="10" cellspacing="0">
 <tr>
    <td align="right"><div class="bold">Username</div></td>
    <td align="left"><input type="text" name="login" value="USERNAME" maxlength="32" size="32"></td>
 </tr>
 <tr>
    <td align="right"><div class="bold">Password</div></td>
    <td align="left"><input type="password" name="password" value="PASSWORD" maxlength="32" size="32"></td>
 </tr>
 </table>
     </td>
     <td>&nbsp</td>
   </tr>
   <tr>
     <td><img src="http://10.64.3.100/corner_lb.jpg" width="45" height="45" alt=""></td>
     <td align="center"><input type="image" src="http://10.64.3.100/button_login.en.gif" name="action_login" value="Login" align="middle">
 
 </td>
     <td><img src="http://10.64.3.100/corner_rb.jpg" width="45" height="45" alt=""></td>
   </tr>
 </table>
    </table>
 </form>
 </body>
 </html>
 
 


I have tried different methods of achieving the auto-submit functionality.  I can always achieve auto-filling the values via the code but auto-submitting either yields a javascript error or it submits to the KVM devices URL and results in the authentication page with none of the fields filled in.  I am trying to achieve actually logging in to the device, so that the user either doesn't see the login page or sees it only momentarily  as the auto-submit works it's way through.

I can provide more information if it would help and would appreciate all help offered in resolving this problem.

Thanks,
Chad
<message edited by ChadR on Saturday, November 03, 2007 10:06 AM>
 
#1
    webber123456

    • Total Posts : 58
    • Scores: 0
    • Reward points : 0
    • Joined: 9/20/2007
    • Status: offline
    RE: Web Auto-Login help needed Sunday, November 04, 2007 5:50 AM (permalink)
    0
    ASP is a "request-response" environment.  It doesn't "auto" anything.

    Normally "auto login" is acheieved by a Remember-me technique in which a user gets a cookie after they have successfully logged in at least once.

    When subsequent attempts to use the site occur, the cookie is tested for when they reach a target page.  If the cookie exists they bypass the login request and are redirected to the work page.  If the cookie does not exist, then they are redirected to the login page.


     
    #2
      ChadR

      • Total Posts : 24
      • Scores: 0
      • Reward points : 0
      • Joined: 8/20/2007
      • Status: offline
      RE: Web Auto-Login help needed Sunday, November 04, 2007 7:06 AM (permalink)
      0
      webber, thank you much for the reply.

      So, if this KVM device does not issue cookies itself, can I create one through the initial auth.asp (which is a modified copy of the auth.asp page which resides on the device) and somehow pass the login credentials to the KVM device's auth.asp page (which I cannot modify, unless I can crack the dbase3 firmware file)?  This is ultimately what I need to accomplish.

      Thank you,

      Chad
      <message edited by ChadR on Sunday, November 04, 2007 7:07 AM>
       
      #3
        webber123456

        • Total Posts : 58
        • Scores: 0
        • Reward points : 0
        • Joined: 9/20/2007
        • Status: offline
        RE: Web Auto-Login help needed Tuesday, November 06, 2007 5:26 AM (permalink)
        0
        I don't know anything about the KVM device.  You'll simply have to try it and see what happens.
         
        #4

          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 1 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2012 ASPPlayground.NET Forum Version 3.9