[ipxe-devel] iPXE: Authentification Problem
Michael Brown
mbrown at fensystems.co.uk
Thu Oct 24 12:25:05 UTC 2013
On 22/10/13 22:03, Sara Martínez wrote:
> #!ipxe
>
> login
>
> ifopen net0
> set net0/175.190:string ${username}
> set net0/175.191:string ${password}
>
> dhcp net0
> chain ${net0.dhcp/filename}
>
> I checked these packets with wireshark: DHCP discover and DHCP request.
> They contain the Etherboot encapsulation (175) with the options:
>
> ipxe.bus-id (177), ipxe.bzimage (24), ipxe.elf (34),
> ipxe.multiboot (25), ipxe.pxe (33), ipxe.pxeext (16), ipxe.version (235)
> , ipxe.http (19), ipxe.iscsi (17), ipxe.dns (23), ipxe.tftp (21),
> ipxe.menu (39), ipxe.aoe (18).
>
> And the options ipxe.username and ipxe.password are not in the packet.
That's expected behaviour; iPXE will not add arbitrary DHCP options into
the DHCPDISCOVER or DHCPREQUEST packets.
I would suggest that you use something like:
if (exists ipxe.username and exists ipxe.password) {
filename "/ltsp/i386/menu-login.ipxe";
} else {
filename "/ltsp/i386/undionly.kpxe";
}
and have menu-login.ipxe contain
#!ipxe
login
chain -ar menu.ipxe
Michael
More information about the ipxe-devel
mailing list