Prompt user to enter user name and password




Prompt user to enter user name and password

  echo Hello ${username}

Boot from iSCSI target using CHAP authentication


Boot from web server using HTTP authentication

  chain http://${username:uristring}:${password:uristring}@my.web.server/boot.ipxe


Display a login screen and allow the user to enter a user name and the corresponding password. The password will be obscured using asterisks.

A login screen

The provided user name and password will be stored in the username and password configuration settings.

Command status

Success The user name and password settings were applied successfully
Failure The user name and password settings were not applied successfully

See also


The user is able to use Ctrl-C (or Escape) to exit the login prompt without entering a user name or password. You may therefore wish to always handle failures of the login command. For example:

  login || goto cancelled

If you need to customise the login screen in any way, you can use the present command to display a custom form. The login command is equivalent to using the commands:

  item          username  Username
  item --secret password  Password
cmd/login.txt ยท Last modified: 2024/06/21 17:31 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL
References to "iPXE" may not be altered or removed.