iPxe, http, basic auth and login command in embed script and in menu script - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: iPxe, http, basic auth and login command in embed script and in menu script (/showthread.php?tid=18236) |
iPxe, http, basic auth and login command in embed script and in menu script - cpservicespb - 2019-05-15 11:40 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 which is compiled in during make step, for example make bin/undionly.kpxe EMBED=script.ipxe and in menu itself: Code: login 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 After that, login in menu works fine. Is it right functioing by design ? RE: iPxe, http, basic auth and login command in embed script and in menu script - NiKiZe - 2019-05-15 20:59 Test with the same command in both cases and try with echo ${username:uristring} etc to see that you have the exact same thing. you might also want to read the git commit history, there might be some gotchas in the iPXE auth client code RE: iPxe, http, basic auth and login command in embed script and in menu script - cpservicespb - 2019-05-16 11:29 (2019-05-15 20:59)NiKiZe Wrote: Test with the same command in both cases You mean after login ? And test to write in cli or via embed script ? RE: iPxe, http, basic auth and login command in embed script and in menu script - cpservicespb - 2019-05-16 15:23 The working solution for me is: ${username} and ${password} not ${username:uristring} and ${password:uristring} RE: iPxe, http, basic auth and login command in embed script and in menu script - NiKiZe - 2019-05-16 17:19 Good, so the important thing is to use the same dataset when doing debugging, printing ${username} and then expecting ${username:uristring} to have data, without checking username:uristring instead. Which version of iPXE are you using, maybe it is an old build without uristring support. Or it is something special with that, so copying it to a real string, could give different data: set lusername ${username} echo ${lusername:uristring} but also try to create another string with data and try uristring on that. RE: iPxe, http, basic auth and login command in embed script and in menu script - cpservicespb - 2019-05-16 18:00 I use git version from May, 13, 2019 compiled by myself. Invoking of Code: set lusername ${username} Code: login So strange, I rebuilt mentioned above version frpm scratch and all began to work. So, this issue is solved. |