- Build:
make all
- Run server:
./gssapi-auth-server -s ./socket -k /path/to/keytab
- Run client:
./gssapi-auth-client -n service_name -s ./socket
Where:
service_name
is the host based service name to authenticate with./socket
is path where the UNIX socket will be created/path/to/keytab
is path to the Kerberos keytab that containsservice_name
credentials
$ ./gssapi-auth-server -s ./socket -k /path/to/keytab
Trying to establish security context:
Socket: ./socket
Keytab: /path/to/keytab
Listening for connections...
Accepted connection: 4
Security context with [email protected] successfully established.
$ ./gssapi-auth-client -n [email protected] -s ./socket
Trying to establish security context:
Service Name: [email protected]
Socket: ./socket
Security context with [email protected] successfully established.
As an example, you can find the code that establish security content between
client and the server in initiator_establish_context()
and
acceptor_establish_context()
.