Prompt user to enter user name and password

Synopsis

  login

Examples

Prompt user to enter user name and password

  login
  echo Hello ${username}

Boot from iSCSI target using CHAP authentication

  login
  sanboot iscsi:10.0.4.1:::1:iqn.2010-04.org.ipxe.dolphin:storage

Boot from web server using HTTP authentication

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

Description

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

Notes

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
cmd/login.txt ยท Last modified: 2012/09/25 20:40 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 https://ipxe.org
References to "iPXE" may not be altered or removed.