The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple user auth for ipxe menu - possible?
2014-06-14, 19:16
Post: #1
Multiple user auth for ipxe menu - possible?
Hi,

On my ipxe menu i have like the following:

:test01
login || goto start
iseq ${username} testuser || goto start
iseq ${password} testpass || goto start
(and then moves on to sanhook stuff)

I use this to enforce user/pass authentication before proceeding to a sanhook statement. This is to ensure only a given user can access a given iscsi lun. So far so good, everything works as intended.

Now, the reason why i opened this forum thread is to ask if/how i can setup authentication that accepts more than 1 user.
Something around these lines:

if ((iseq ${username} testuser && iseq ${password} testpass) or ((iseq ${username} seconduser && iseq ${password} secondpass)) || goto start


Would this be possible with ipxe? If so, what would the actual command look like?

Thanks,
Bruno
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Multiple user auth for ipxe menu - possible? - bunoc - 2014-06-14 19:16



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