Howdy<br><br>This is a bit of a -users question rather than -devel but the rlm_dhcp is still proto but I am trying to figure out the best approach to my current issue.  I've seen this mail thread: <a href="https://lists.freeradius.org/pipermail/freeradius-devel/2012-November/007267.html">https://lists.freeradius.org/pipermail/freeradius-devel/2012-November/007267.html</a><br>
<br>I am trying to take a Radius Request from a Juniper MX which is receiving a DHCP request from the CPE including Option 82 Circuit & Remote IDs in the request.<br><br>It comes through in the Juniper VSA 55 ERX-Dhcp-Options as a big octet stream something like this.<br>
<br>3501013d07010019c7f9fbdf3c0c64736c666f72756d2e6f72673902024037090103060c0f1c2a2b4252350121574e2d504f4c5430312065746820312f312f30312f30352f352f31342f313a3130021043484f52555331363334353637383935<br><br>The ADSL RFC attributes are at the end: <br>
<br>52350121574e2d504f4c5430312065746820312f312f30312f30352f352f31342f313a3130<br><br>Option 82, Length 35 Type 01 length 21 Circuit ID: <br><br>And end out with: WN-POLT01 eth 1/1/01/05/5/14/1:10<br><br>Then the Remote ID 02 length 10<br>
<br>021043484f52555331363334353637383935<br><br>CHORUS1634567895<br><br>I was then looking to map them to the RFC 4679 attributes ADSL-Agent-Circuit-Id and ADSL-Agent-Remote-Id.<br><br>Then I need to return the ACS Vendor Specific Information DHCP Option 43 with the ACS TR-069 URL and a few other variables.  Something like this: <br>
<br>2b360128687474703a2f2f7369702e636f6e6669672e636f2e6e7a3a383038302f6f70656e6163732f616373020455535231fe0455535231<br><br>With 01 being the ACS URL, and 02 as USR1 and 254 also as USR1 variables I need to return<br><br>
I suspect I may need to fully re-write the PROTO_DHCP module to get it to complie without too much drama onto FreeRadius 2.1.12 as that's the version we are running due to it being supported by RHEL 6.3.  Or hack it with a rlm_perl script.<br>
<br>Any suggestions on the best way to manipulate the octet string?<br><br>Cheers<br><br>Peter<br>