Release of Version 3.0.2
Matthew Newton
mcn4 at leicester.ac.uk
Tue Mar 11 18:45:50 CET 2014
On Tue, Mar 11, 2014 at 10:23:16AM -0400, Alan DeKok wrote:
> Matthew Newton wrote:
> >> I'll have to think about how to fix that one. I may have to push a
> >> fix tomorrow.
> >
> > No rush here, just trying to test before 3.0.2 gets out the door,
> > unlike last time.
>
> I've pushed a fic for the unknown attribute error. It now works.
Thanks, that looks good. mac2ip will get the IP and send the right DHCP
response (the client machine seemed to swallow it OK, so looks good there too,
will test further later this evening if I get a chance).
Still an issue with unlang. This doesn't work, but I'm pretty sure it should
(and the unlang manpage says it should):
if (DHCP-Client-Hardware-Address == "02:01:04:05:06:07") {
update reply {
DHCP-Your-IP-Address := "10.0.0.102"
}
}
(0) ? if (DHCP-Client-Hardware-Address == "02:01:04:05:06:07")
(0) ? if (DHCP-Client-Hardware-Address == "02:01:04:05:06:07") -> FALSE
(0) [ok] = ok
Whereas this does work:
if ("%{DHCP-Client-Hardware-Address}" == "02:01:04:05:06:07") {
update reply {
DHCP-Your-IP-Address := "10.0.0.102"
}
}
(0) ? if ("%{DHCP-Client-Hardware-Address}" == "02:01:04:05:06:07")
(0) expand: "%{DHCP-Client-Hardware-Address}" -> '02:01:04:05:06:07'
(0) ? if ("%{DHCP-Client-Hardware-Address}" == "02:01:04:05:06:07") -> TRUE
(0) if ("%{DHCP-Client-Hardware-Address}" == "02:01:04:05:06:07") {
(0) update reply {
(0) DHCP-Your-IP-Address := 10.0.0.102
(0) } # update reply = noop
(0) } # if ("%{DHCP-Client-Hardware-Address}" == "02:01:04:05:06:07") = noop
(0) [ok] = ok
Is there a problem with the first comparison, or am I just being silly (won't
be the first time!)
Cheers,
Matthew
--
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>
Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>
More information about the Freeradius-Devel
mailing list