<div dir="ltr"><p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:'Times New Roman',serif">This is my
dhcpd.conf: </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:'Times New Roman',serif"><br></span></p>
<p class="MsoNormal"><font face="courier new, monospace"><span lang="EN-US" style="font-size:10pt;line-height:115%">option space ipxe;</span><span lang="EN-US" style="font-size:10pt;line-height:115%"><br>
<span style="background-repeat:initial initial"> option ipxe-encap-opts code 175 =
encapsulate ipxe;</span><br>
<span style="background-repeat:initial initial"> option ipxe.priority code 1 = signed
integer 8;</span><br>
<span style="background-repeat:initial initial"> option ipxe.keep-san code 8 = unsigned
integer 8;</span><br>
<span style="background-repeat:initial initial"> option ipxe.skip-san-boot code 9 =
unsigned integer 8;</span><br>
<span style="background-repeat:initial initial"> option ipxe.syslogs code 85 = string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.cert code 91 = string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.privkey code 92 = string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.crosscert code 93 = string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.no-pxedhcp code 176 =
unsigned integer 8;</span><br>
<span style="background-repeat:initial initial"> option ipxe.bus-id code 177 = string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.bios-drive code 189 =
unsigned integer 8;</span><br>
<span style="background-repeat:initial initial"> option ipxe.username code 190 = string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.password code 191 = string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.reverse-username code 192 =
string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.reverse-password code 193 =
string;</span><br>
<span style="background-repeat:initial initial"> option ipxe.version code 235 = string;</span><br>
<span style="background-repeat:initial initial"> option iscsi-initiator-iqn code 203 =
string;</span><br>
<br>
<span style="background-repeat:initial initial"> option
ipxe.priority 1;</span><br>
<br>
…</span></font></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%"><font face="courier new, monospace">…</font></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%"><font face="courier new, monospace"> if (exists ipxe.username and exists ipxe.password) {</font></span><span lang="EN-US" style="font-size:10pt;line-height:115%"><font face="courier new, monospace"><br>
filename "/ltsp/i386/menu.ipxe";<br>
} else if (exists user-class
and option user-class = "iPXE") {<br>
filename "/ltsp/i386/menu-login.ipxe";<br>
}
else {<br>
filename
"/ltsp/i386/undionly.kpxe";<span class=""> </span><br>
}</font><br>
<br>
<span style="font-family:Arial,sans-serif"></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif">And my menu-login.ipxe :</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif"><br>
</span></p>
<p class="MsoNormal"><font face="courier new, monospace"><span lang="EN-US" style="font-size:10pt;line-height:115%">#!ipxe</span><span lang="EN-US" style="font-size:10pt;line-height:115%"><br>
<br>
</span></font></p>
<p class="MsoNormal"><font face="courier new, monospace"><span lang="EN-US" style="font-size:10pt;line-height:115%">login</span><span lang="EN-US" style="font-size:10pt;line-height:115%"><br>
<br>
<span style="background-repeat:initial initial">ifopen net0</span><br>
<span style="background-repeat:initial initial">set net0/175.190:string ${username}</span><br>
<span style="background-repeat:initial initial">set net0/175.191:string ${password}</span><br>
<br>
<span style="background-repeat:initial initial">dhcp net0</span><br>
<span style="background-repeat:initial initial">chain ${net0.dhcp/filename}</span></span></font></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif"><br></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif"><br>
<br>
<span style="background-repeat:initial initial"></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:'Times New Roman',serif">I checked these
packets with wireshark: DHCP discover and DHCP request. They contain the Etherboot
encapsulation (175) with the options:</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:'Times New Roman',serif">
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).</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:'Times New Roman',serif">And the options
ipxe.username and ipxe.password are not in the packet. </span></p><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/21 Sara Martínez <span dir="ltr"><<a href="mailto:saramartinezlarriba@gmail.com" target="_blank">saramartinezlarriba@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px">Hello!</span></div>
<span style="font-family:arial,sans-serif;font-size:13px">I'm trying to authenticate my client to a dhcp server in linux and I'm trying to use the ipxe (dhcp) options username (190) and password (191) to carry the authentication credentials in the dhcp request after loading undionly.ipxe; but I cannot success. How can I do this authentification at booting time with ipxe?</span><div>
<font face="arial, sans-serif">Thank you!<span class=""><font color="#888888"><br clear="all"></font></span></font><span class=""><font color="#888888"><div><br></div>-- <br>Sariña
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Sariña
</div></div>