for state transitions through gssEapSmTransition
[mech_eap.orig] / README
1 Overview
2 ========
3
4 This is an implementation of the GSS EAP mechanism, as described in
5 draft-ietf-abfab-gss-eap-00.txt.
6
7 Building
8 ========
9
10 In order to build this, a recent Kerberos implementation (MIT or
11 Heimdal), Shibboleth, and EAP libraries are required, along with
12 all of their dependencies.
13
14 Note: not all SPIs are supported by the Heimdal mechanism glue,
15 so not all features will be available.
16
17 Installing
18 ==========
19
20 When installing, be sure to edit $prefix/etc/gss/mech to register
21 the EAP mechanisms. A sample configuration file is in this directory.
22
23 Make sure your RADIUS library is configured to talk to the server of
24 your choice: see the example radsec.conf in this directory.
25
26 On the RADIUS server side, you need to install dictionary.ukerna and
27 include it from the main dictionary file.
28
29 If you want the acceptor be able to identify the user, the RADIUS
30 server needs to echo back the EAP username from the inner tunnel;
31 for privacy, mech_eap only sends the realm in the EAP Identity
32 response. To configure this with FreeRADIUS, add:
33
34         update outer.reply {
35             User-Name = "%{request:User-Name}"
36         }
37
38 to $prefix/etc/raddb/sites-enabled/inner-tunnel, and ensure that
39
40     virtual_server = "inner-tunnel"
41
42 is set in eap.conf for the desired EAP types.
43
44 To test the SAML assertion code path, you can place a fixed SAML
45 assertion in the update reply block of the default configuration.
46
47         update reply {
48             SAML-AAA-Assertion = '<saml:Assertion ...'
49             SAML-AAA-Assertion += '...'
50         }
51
52 You'll need to split it into multiple lines because of the RADIUS
53 attribute size limit.
54
55 Testing
56 =======
57
58 You can then test the MIT or Cyrus GSS and SASL example programs.
59 Sample usage is given below. Substitute <user>, <pass> and <host>
60 appropriately (<host> is the name of the host running the server,
61 not the RADIUS server).
62
63 % gss-client -port 5555 -spnego -mech "{1 3 6 1 4 1 5322 22 1 18}" \
64   -user <user> -pass <pass> <host> host@<host> "Testing GSS EAP"
65 % gss-server -port 5555 -export host@<host>
66
67 Note: for SASL you will be prompted for a username and password.
68
69 % client -C -p 5556 -s host -m EAP-AES128 <host>
70 % server -c -p 5556 -s host -h <host>
71