Using Kerberos authentication for Server/Client application

neznanec picture neznanec · Jun 28, 2011 · Viewed 7.7k times · Source

In c++ I am trying to build a portable server running on Linux and Windows and client running in Windows that will use MS Active Directory for authentication. After some research I decided that best way to go is use Kerberos. I decided to use MIT Kerberos v5 library due to BSD style licence.

But my problem is that I am completely unable to find good resource on working in Kerberos in C++. All examples that I found are just simple code snippets that fail to explain in enough details what input parameters to functions are and reference manuals (doxygen style) that briefly explains the function in question but does not provide enough information to understand the context where to use it.

In short, can you recommend good resource for C++ programmer that two weeks ago did not even know what Kerberos is?

Answer

pm100 picture pm100 · Jun 28, 2011

The best place to start is the sample simple client and simple server in the MIT code distribution found here: https://github.com/krb5/krb5/tree/master/src/appl/sample

This shows you how to use GSSAPI to do mutual auth