Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE/PHP
2012-09-18, 07:29 (This post was last modified: 2012-09-18 07:29 by Torgeir.)
Post: #4
RE: iPXE/PHP
Got it working with this:

login.check.php

Code:
<?
header ("Content-type: text/plain");
echo "#!ipxe\n";

# ipXE login menu
echo "logn \n";

$user = "\${username}";
$pass = "\${password}";

echo "chain http://serverip/login.check2.php?user=${user}&pass=${pass} \n";
?>

login.check2.php
Code:
<?
header ("Content-type: text/plain");
echo "#!ipxe\n";

$user = $_REQUEST["user"];
$pass = $_REQUEST["pass"];

if ($user === "torgeir" && $pass === "torgeir") {
          #echo "Correct user/pass";
           echo "chain http://serverip/next.step.php \n";
} else {
          #echo "Wrong user/pass back to login";
          echo "chain http://serverip/login.check.php \n";
}
?>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
iPXE/PHP - Torgeir - 2012-09-17, 11:15
RE: iPXE/PHP - robinsmidsrod - 2012-09-17, 11:55
RE: iPXE/PHP - Torgeir - 2012-09-17, 13:44
RE: iPXE/PHP - Torgeir - 2012-09-18 07:29
RE: iPXE/PHP - Torgeir - 2012-09-18, 11:52



User(s) browsing this thread: 1 Guest(s)