iPXE discussion forum
Menu: password on an item - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Menu: password on an item (/showthread.php?tid=7013)



Menu: password on an item - blanalex - 2013-08-07 16:21

Is there a way to put a password on an item in the menu?

If not, it would be a great feature to add!


RE: Menu: password on an item - robinsmidsrod - 2013-08-08 15:50

Not directly, but you can sort of work around it with some fancy scripting. You can make the menu item go to a label that asks for a username/password, then you can chain off to a server-side script that will validate the credentials, and depending on what it says it'll either return an empty or a full menu or do whatever it is supposed to do.


RE: Menu: password on an item - blanalex - 2013-08-08 16:29

I'm looking for a way to lock a sub menu on the client side.

Something like this:
1 - Boot from hard disk
2 - Network utilities (administrators only)

With option 1 obviously being the default with a timeout value, and option 2 protected with a password.


RE: Menu: password on an item - robinsmidsrod - 2013-08-22 10:01

You can't do that in a secure way, but if you only want to make it a bit harder for normal users to reach the admin utils you can make the admin menu go to a script section that asks for username/password and then just check that the password matches a predefined password (which would be listed in the script file in cleartext). Obviously a smart user will be able to find the password by fetching the script using a browser, tftp client or something else. Normal, dumb, users won't be able to figure it out, though.