freeradius 3 cannot initiate eap-sim,
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Fri Mar 28 17:26:15 CET 2014
On 28 Mar 2014, at 16:06, Bill Yuan <bycn82 at gmail.com> wrote:
> Thanks for the reply,
> >
> > What is hard to understand about that message? You have the wrong
> > information in the file. Do:
> >
> > user EAP-Sim-Rand1 := ...
> > ...
> >
> > Do NOT DO:
> >
> > user ...
> > EAP-Sim-Rand1 := ...
>
> Below is a sample for version2, but can someone please help to re-format it and make it workable for version 3? thanks very much!
> 1525016114550600 at wlan.mnc001.mcc525.3gppnetwork.org Auth-Type:=EAP, EAP-Type:=SIM
> EAP-Sim-Rand1 = 0x5950877781B748d2BB3E77569D57A483
> EAP-Sim-SRES1 = 0x2Ae04b14,
> EAP-Sim-KC1 = 0xC7176774EA83cd6f,
> EAP-Sim-Rand2 = 0xF7E5774BC82A414c9FA108E97A761C4B,
> EAP-Sim-SRES2 = 0x2311eb24,
> EAP-Sim-KC2 = 0xBBdf4281D7ab35ff,
> EAP-Sim-Rand3 = 0xEFB4CD954B654f50BF92D71D326A1F6A,
> EAP-Sim-SRES3 = 0xE4b8a9e4,
> EAP-Sim-KC3 = 0xA5c98dabAF2a733b,
> I tried to remove the Auth-Type, also tried to move the RAND1 in the same line, but still not working.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Try the latest git head, it should now accept either.
But to add the triplets as control items, it'd be:
1525016114550600 at wlan.mnc001.mcc525.3gppnetwork.org EAP-Sim-Rand1 := <value>, EAP-Sim-SRES1 := <value>, EAP-Sim-KC1 := <value>, EAP-Sim-Rand2 := <value>, EAP-Sim-SRES2 := <value>, EAP-Sim-KC2 := <value>, EAP-Sim-Rand3 := <value>, EAP-Sim-SRES3 := <value>, EAP-Sim-KC3 := <value>
The users file format is quite old and doesn't deal with this gracefully.
If you don't want the overhead of managing a database, i'd suggest you use sqlite, and add the triplets there instead. It has the added advantage of being more easily scriptable if you need to add or remove subscribers.
Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/mailman/private/freeradius-users/attachments/20140328/5bad5a6c/attachment.pgp>
More information about the Freeradius-Users
mailing list