chain with "$macros" does not work anymore
|
2014-09-02, 14:09
Post: #3
|
|||
|
|||
RE: chain with "$macros" does not work anymore
Hello,
I have modified the script: Code: #!gpxe In the shell Code: echo "${username}" then I entered the "chain" command on the commandline. This is what I get from tcpdump Code: $.-.GET /netboot/public/menu.c32 HTTP/1.1 And afterwards the generated pxelinux menu is the one for "not authorized" case. After reading through the source I have added a "private/forbidden" section on the server with htpasswd/htaccess. The url now is: Code: chain http://${username:uristring}:${password:uristring}@server.com/private/a.txt and a.txt contains a sample pxelinux menu. The captured tcpdump now contains: Code: GET /netboot/private/a.txt HTTP/1.1 So here the Basic authorisation works, the a.txt files is delivered, after the first GET command fails with "401". As a result I would say: The old gpxe code always send the Basic Auth, reagardless if the server "needs" is or not. The new ipxe code needs a 401, before it adds the authorisation. I now have modified the php script and added a Code: if (! authenticated() ) { But now it looks that the menu.c32 is active, because it does not send the "Basic Auth" in a second attempt. There is no second attempt at all. It looks that if I'm using COMBOOT and http://${username}:${password}/ ipxe must always send the Basic Auth. Maybe this can be done as a config option? For example in a script Code: force_http_auth 1 which then sets a global setting. I think I must prepare a patch for this. regards, Martin |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
chain with "$macros" does not work anymore - mvogt1 - 2014-08-28, 14:19
RE: chain with "$macros" does not work anymore - robinsmidsrod - 2014-08-31, 10:11
RE: chain with "$macros" does not work anymore - mvogt1 - 2014-09-02 14:09
RE: chain with "$macros" does not work anymore - sebastian - 2014-09-04, 04:56
|
User(s) browsing this thread: 1 Guest(s)