<div dir="ltr">I'm no expert, so someone may correct me here, but looks like you may need a client class setup, with a match statement for your option 82. I found this information regarding static IP with option 82:<div>
<br></div><div><div>class "static-option-82" { match option agent.remote-id; }</div><div><br></div><div>subclass "static-option-82" "VP123456";</div><div><br></div></div><div><br></div><div style>
If you're using circuit-id, may have to replace agent.remote-id with that. Translated to LDAP would be:</div><div style><br></div><div style>Client Class Syntax:</div><div style><br></div><div style>dn: cn=static-option-82,dc=<your dc info></div>
<div style>cn: static-option-82</div><div style>objectClass: top</div><div style>objectClass: dhcpClass</div><div style>dhcpStatements: match option agent.circuit-id</div><div style><br></div><div style>Then you would need a subclass entry for each host. Also, because of the way subclass entries need to be named, I would name the host entry something like: host-<span style="font-family:arial,sans-serif;font-size:13px">AVC999990012672</span></div>
<div style><br></div><div style>dn: cn=<span style="font-family:arial,sans-serif;font-size:13px">AVC999990012672, dc=<your dc info></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">cn: </span><span style="font-family:arial,sans-serif;font-size:13px">AVC999990012672</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">objectClass: top</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">objectClass: dhcpSubClass</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">dhcpClassData: "static-option-82"</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Obviously the DN's can be changed for whatever OU structure you're using. Give that a shot and see if it helps.</span></div>
<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 11:03 PM, matt <span dir="ltr"><<a href="mailto:matt@onthenet.com.au" target="_blank">matt@onthenet.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Doh, only digest. anyway..<br>
<br>
Yes Jason in non ldap mode I am able to allocate an IP using option 82.<br>
<br>
This config does the trick.<br>
<br>
host user1 {<br>
host-identifier option agent.circuit-id "AVC999990012672";<br>
fixed-address 10.0.30.123;<br>
}<br>
<br>
When running with LDAP however the search filter is using only the dhcpHWAddress as below.<br>
<br>
(&(objectClass=dhcpHost)(<u></u>dhcpHWAddress=ethernet c8:4c:75:a2:b7:19))<br>
<br>
If I add in the MAC so the above filter has a match, then the IP is allocated fine.<br>
<br>
My LDAP entry for the host is as follows.<br>
<br>
dn: cn=AVC999990012672, cn=customers,cn=dhcp,dc=test,<u></u>dc=com<br>
objectClass: top<br>
objectClass: dhcpHost<br>
cn: AVC999990012672<br>
dhcpStatements: host-identifier option agent.circuit-id "AVC999990012672"<br>
dhcpStatements: fixed-address 10.0.30.66<br>
<br>
So it appears I need to modify the filter somehow ?<br>
<br>
thanks.<br>
<br>
Matt<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you tried running in ldap debug mode to see the ldap query its using? Do your options work properly if you test in non ldap mode?<br>
<br>
Jason K. Brandt<br>
<a href="tel:309-208-6687" value="+13092086687" target="_blank">309-208-6687</a><br>
<br>
Sent from my iPad<br>
<br>
On May 28, 2013, at 7:29 PM, matt <matt at <a href="http://onthenet.com.au" target="_blank">onthenet.com.au</a>> wrote:<br>
<br>
Hi,<br>
<br>
I have dhcpd (4.2.5) using Openldap for its config with success.<br>
I'm trying to assign Static IP's using Option 82 instead of the MAC address but running into problems.<br>
I can see some discussion regarding Option 82 and LDAP from years ago but nothing recently.<br>
Has anyone had any experience with Option 82 IP assignment and LDAP ?<br>
<br>
thanks.<br>
<br>
Matt.<br>
______________________________<u></u>_________________<br>
dhcp-users mailing list<br>
dhcp-users at <a href="http://lists.isc.org" target="_blank">lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/<u></u>listinfo/dhcp-users</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/<u></u>listinfo/dhcp-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Jason K. Brandt</div><div>Systems Administrator</div><div>Bradley University<br>(309) 677-2958<br></div>
</div>