'
  • Invalid User Name/Password
  • User Name required
  • Password required', 4104 => '
  • Service in Progress
  • Login not allowed', 4105 => '
  • Already logged in on the Web Client
  • Login not allowed', 4106 => '
  • System has too many login sessions
  • No more logins allowed', 9000 => '
  • Domain required for LDAP authentication'); if( isset($_POST['username'] ) && isset($_POST['password']) ) { if( strcmp($_POST['username'],"") && strcmp($_POST['password'],"") ) { session_start(); if (($_POST['authType'] == "ldap") && ($_POST['domain'] == "")) { $_REQUEST['login_error'] = True; $result->reason = 9000; $_REQUEST['reason'] = $result->reason; } else { // The second to last paramiter is LDAPDomain. $result = login( $_POST['username'], $_POST['password'], $_SERVER[REMOTE_HOST], $_SERVER[REMOTE_ADDR], $_POST['domain'], session_id() ); $username = $result->username; $role = $result->role; if( strcmp($username,"") && strcmp($role,"") ) { // // Save last click time for inactivity timeout // $lastClick = time(); $_SESSION['lastclick'] = $lastClick; // // set a hash of the user name // $_SESSION['login'] = $_REQUEST['username'].','.md5($_REQUEST['username'].$secret_word); $_SESSION['user'] = $result; header('location:'.HOME_VIEW_PAGE ); } else { $_REQUEST['login_error'] = True; $_REQUEST['reason'] = $result->reason; } } } else { $_REQUEST['login_error'] = True; $_REQUEST['reason'] = $result->reason; } } else { // // User coming to the page // session_start(); // // check to see if the user is coming back to page; already logged in // if( isset($_SESSION['login']) ) { if( isset($_SESSION['user']) ) { $user = $_SESSION['user']; list($tmp_username,$cookie_hash) = explode(',',$_SESSION['login']); if( md5($tmp_username.$secret_word) == $cookie_hash ) { // // Check for inactivity // $currentClick = time(); if( isset($_SESSION['lastclick']) ) { if( ($currentClick - $_SESSION['lastclick']) > TIMEOUT_SECS ) { // // inactivity; logout // logoff($_SESSION['user']); session_destroy(); } else { $_SESSION['lastclick'] = $currentClick; // // User is coming back; send to homeview header('location:'.HOME_VIEW_PAGE); } } else { logoff($_SESSION['user']); session_destroy(); } } else { logoff($_SESSION['user']); session_destroy(); } } else { session_destroy(); } } else { session_destroy(); } } ?> Login Page
    IBM Total Storage IBM
    Help
    Welcome Image
    Welcome
    IBM TS3310
    "; } ?>
    IBM TS3310 Sign On
    Enter user name and password to sign on.
    Login Failed
    "; $errorMessage = $errorMap[$_REQUEST['reason']]; if( $errorMessage == "" ) { $errorMessage = $errorMap[4103]; } if (($_POST['username'] == 'service') && ($_REQUEST['reason'] == 4103)) { echo "
  • Verify that login and password are correct and that Remote Service User support is enabled."; } else { echo $errorMessage; } echo "
  • required
    required
    Use local authentication
    Use LDAP authentication
    required