[gPXE] Possible Bug in gPXE?

Joshua Oreman oremanj at rwcr.net
Tue Jul 13 03:07:21 EDT 2010


On Tue, Jul 13, 2010 at 12:05 AM, Ozan Yerli <oyerli at gmail.com> wrote:
> If you look at my commands, I have not used the username/password
> anywhere yet. But just entering an empty password breaks the sanboot
> command.

As expected, since sanboot uses the username and password you entered
to authenticate to the iSCSI device. If you were just trying to get a
username-like thing and a password-like thing entered using a
convenient interface, you can use ${username} and ${password} in
whatever you need them for and then "clear username" and "clear
password" before you boot.

-- Josh

>
> 2010/7/13 Joshua Oreman <oremanj at rwcr.net>:
>> On Sat, Jul 10, 2010 at 6:54 AM, Ozan Yerli <oyerli at gmail.com> wrote:
>>> Hi,
>>>
>>> I am running gPXE on a VirtualBox machine. I wanted to implement a
>>> login system, but I believe I have encountered a bug.
>>>
>>> To replicate the bug you can issue the following commands:
>>>
>>> dhcp net0
>>> login
>>> (Write asdfgh as username, leave the password empty. Leaving the
>>> password empty is important.)
>>> sanboot iscsi:192.168.1.1::::iqn.test
>>>
>>> I get the error:
>>> Could not attach iSCSI device: Invalid argument (0x1c0d6002)
>>> Could not boot from iscsi:192.168.1.1::::iqn.test: Invalid argument (0x1c0d6002)
>>>
>>> If you do not leave the password empty, everything works fine, that's
>>> why I think it is a bug. It should be related to the password field.
>>
>> I don't believe this is a bug. The iSCSI CHAP protocol doesn't handle
>> empty passwords well; in fact, some systems (such as Windows) will
>> refuse to authenticate with anything less than a 12-character
>> password. Are you trying and failing to authenticate with a system
>> that actually uses a required username and a blank password?
>>
>> -- Josh
>>
>>> Please comment.
>>>
>>> Thanks,
>>> Ozan Yerli
>>> _______________________________________________
>>> gPXE mailing list
>>> gPXE at etherboot.org
>>> http://etherboot.org/mailman/listinfo/gpxe
>>>
>>
>


More information about the gPXE mailing list