Académique Documents
Professionnel Documents
Culture Documents
format change.
Denis Iskandarov d.iskandarov at gmail.com
Thu Dec 2 13:35:19 CET 2010
Hello
i'm using DHCP Option 82 with Freeradius auth.
it uses several fields as username for auth: User-Name, agent-remote-id and
agent-circuit-id.
User-Name is mac address of cdhcp-client, and comes to radius in normal
format "aa:bb:cc:dd:ee:ff"
agent-remote-id and agent-circuit-id - are combination of dhcp-client mac
address, vlan id, port id, slot id of dhcp relay.
they should come in same normal hex format aa:bb:cc:dd:ee:ff but lil bit bit
longer e.g.:
Agent-Remote-Id = 0006000ded21a480
Agent-Circuit-Id = 000400020000
How can i tell freeradius to work with this attributes in normal format ?
Other way i've to enter this stupid strings in users db to authenticate user
(it works like this right now).
FreeRadius:
rad_recv: Access-Request packet from host 192.168.1.101 port 50213, id=4,
length=143
NAS-Port-Type = Ethernet
NAS-Port = 2210402311
Calling-Station-Id = "1:0:c:42:40:40:38"
Called-Station-Id = "CLIENTS_pool1"
User-Name = "00:0C:42:40:40:38"
User-Password = ""
*Agent-Remote-Id = "\000\006\000\r\355!\244\200"
Agent-Circuit-Id = "\000\004\000\002\000"*
NAS-Identifier = "R1"
NAS-IP-Address = 192.168.1.101
Radiator
Attributes:
NAS-Port-Type = Ethernet
NAS-Port = 2213543991
Calling-Station-Id = "1:0:c:42:40:40:38"
Framed-IP-Address = 192.168.3.156
Called-Station-Id = "CLIENTS_pool1"
User-Name = "00:0C:42:40:40:38"
User-Password = <230><182><134>I<22><196><196><178>\#<8>Uq<251><162><201>
* RB-Agent-Remote-Id = 0006000ded21a480
RB-Agent-Circuit-Id = 000400020000*
NAS-Identifier = "R1"
NAS-IP-Address = 192.168.0.22