Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP Basic Auth escape password
2015-08-12, 22:03
Post: #1
HTTP Basic Auth escape password
I am attempting to use HTTP(S) basic authentication to control access to a PXE boot menu in an iPXE script:

Code:
#!ipxe
dhcp || exit
login || exit
boot https://${username:uristring}:${password:uristring}@${net0.dhcp/next-server}/pxe/menu.php || exit

Passwords with the commercial at symbol (@) fail because the at symbol is not being escaped. How can I escape it?
Find all posts by this user
Quote this message in a reply
2015-08-25, 14:16
Post: #2
RE: HTTP Basic Auth escape password
(2015-08-12 22:03)rhwood Wrote:  
Code:
boot https://${username:uristring}:${password:uristring}@${net0.dhcp/next-server}/pxe/menu.php ||

Passwords with the commercial at symbol (@) fail because the at symbol is not being escaped. How can I escape it?

Your syntax is correct. The latest commit http://git.ipxe.org/ipxe.git/commitdiff/ba36953 should fix the problem.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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