EAP-SIM simulation, how does Freeradius calculate MAC value in AT_MAC attribute
Hi, I am working on the implementation of an EAP-SIM supplicant, when i send to freeradius a EAP-Response/SIM/Start packet i receive as expected an EAP-Resquest/SIM/Challenge with AT_RAND (RAND value was specified in users file [2]) and AT_MAC, after this I should calculate MAC value and test if this value matches witch AT_MAC value sent by freeradius. my question is how freeradius calculate MAC value in AT_MAC atribute ? or from wich source freeradius fill MAC value in the AT_MAC attribute ? [2]: my eap-sim user is set in users file as below : 1262074920549791 Auth-Type := EAP, EAP-Type := SIM EAP-Sim-Rand1 = 0x39900000000000000000000000000000, EAP-Sim-SRES1 = 0x30112233, EAP-Sim-KC1 = 0x445566778899AABB, EAP-Sim-Rand2 = 0x31000000000000000000000000000000, EAP-Sim-SRES2 = 0x31112233, EAP-Sim-KC2 = 0x445566778899AABB, EAP-Sim-Rand3 = 0x32000000000000000000000000000000, EAP-Sim-SRES3 = 0x32112233, EAP-Sim-KC3 = 0x445566778899AABB Thank you in advance, Best regards. -- Sami
Tabibel Sami wrote:
I am working on the implementation of an EAP-SIM supplicant,
That doesn't have much to do with FreeRADIUS.
when i send to freeradius a EAP-Response/SIM/Start packet i receive as expected an EAP-Resquest/SIM/Challenge with AT_RAND (RAND value was specified in users file [2]) and AT_MAC, after this I should calculate MAC value and test if this value matches witch AT_MAC value sent by freeradius.
my question is how freeradius calculate MAC value in AT_MAC atribute ?
See the source code.
or from wich source freeradius fill MAC value in the AT_MAC attribute ?
See the source code. We're not in the business of helping you debug your code. Alan DeKok.
Ok thank you for reply . On Sat, Apr 13, 2013 at 8:34 PM, Alan DeKok <aland@deployingradius.com> wrote:
Tabibel Sami wrote:
I am working on the implementation of an EAP-SIM supplicant,
That doesn't have much to do with FreeRADIUS.
when i send to freeradius a EAP-Response/SIM/Start packet i receive as expected an EAP-Resquest/SIM/Challenge with AT_RAND (RAND value was specified in users file [2]) and AT_MAC, after this I should calculate MAC value and test if this value matches witch AT_MAC value sent by freeradius.
my question is how freeradius calculate MAC value in AT_MAC atribute ?
See the source code.
or from wich source freeradius fill MAC value in the AT_MAC attribute ?
See the source code.
We're not in the business of helping you debug your code.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
I would like to clarify that eap-sim supplicant i am developping, interract with freeradius server to do 802.1x authentication. thank you anyway. Regards. On Sat, Apr 13, 2013 at 8:39 PM, Tabibel Sami <sami.tabibel@gmail.com> wrote:
Ok thank you for reply .
On Sat, Apr 13, 2013 at 8:34 PM, Alan DeKok <aland@deployingradius.com> wrote:
Tabibel Sami wrote:
I am working on the implementation of an EAP-SIM supplicant,
That doesn't have much to do with FreeRADIUS.
when i send to freeradius a EAP-Response/SIM/Start packet i receive as expected an EAP-Resquest/SIM/Challenge with AT_RAND (RAND value was specified in users file [2]) and AT_MAC, after this I should calculate MAC value and test if this value matches witch AT_MAC value sent by freeradius.
my question is how freeradius calculate MAC value in AT_MAC atribute ?
See the source code.
or from wich source freeradius fill MAC value in the AT_MAC attribute ?
See the source code.
We're not in the business of helping you debug your code.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Tabibel Sami wrote:
I would like to clarify that eap-sim supplicant i am developping, interract with freeradius server to do 802.1x authentication.
Just like the dozens of other supplicants out there. It will also interact with RADIUS servers from Cisco, Juniper, etc. Alan DeKok.
participants (2)
-
Alan DeKok -
Tabibel Sami