Skip to content

Example of authentication using GSSAPI in C

Notifications You must be signed in to change notification settings

pbrezina/gssapi-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example of authentication using GSSAPI

How to test

  1. Build: make all
  2. Run server: ./gssapi-auth-server -s ./socket -k /path/to/keytab
  3. 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 contains service_name credentials

Example

Server:

$ ./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.

Client:

$ ./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.

Notes

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().

About

Example of authentication using GSSAPI in C

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published