The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPxe, http, basic auth and login command in embed script and in menu script
2019-05-15, 11:40
Post: #1
iPxe, http, basic auth and login command in embed script and in menu script
I have the latest git veriosn of iPXE compiled from sources by myself.
There is login commands in 2 places - in embed script:
Code:
#!ipxe

ifconf || reboot
login || reboot
chain http://${username:uristring}:${password:uristring}@fqdn/folder/menu.ipxe

which is compiled in during make step, for example make bin/undionly.kpxe EMBED=script.ipxe

and in menu itself:
Code:
login
kernel http://${username:uristring}:${password:uristring}@fqdn/folder/folder1/wimboot
initrd http://${username:uristring}:${password:uristring}@fqdn/folder/folder1/BCD  BCD
.....

But 1 during first login command empty username and password is sent to Web server.
As following, Permission is denied.
I saw at its logs.
During second login is ok.
But if is to remove login command from embed script and specify exact user/password at http string all is ok.
That is:
Code:
#!ipxe

imgfree
ifconf || reboot
chain http://rightuser:rightpass@fqdn/folder/menu.ipxe

After that, login in menu works fine.

Is it right functioing by design ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
iPxe, http, basic auth and login command in embed script and in menu script - cpservicespb - 2019-05-15 11:40



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