2014-06-14, 19:16
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
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