Configure a KDC, add test for GSSAPI/Kerberos
authorRob Crittenden <rcritten@redhat.com>
Tue, 28 Apr 2015 14:52:55 +0000 (10:52 -0400)
committerSimo Sorce <simo@redhat.com>
Thu, 7 May 2015 14:44:45 +0000 (10:44 -0400)
commitb34a4553cf8c60453fbef245d7d844a30339c734
tree8125ac3a49605a61ee9d5e16896af1a96e41820d
parentaa5dc3b417db962a075a092d0d3528010c1059f7
Configure a KDC, add test for GSSAPI/Kerberos

Using nss_wrappers so we can control host names we can
setup a KDC and test GSSAPI, including fallback to
forms-based auth.

This also means that fetch_page() needs to handle 401
a bit better, so it can re-try a failed authentication or
fall back to forms-based auth.

Note for posterity: if gss_localname() fails this is likely
due to using the wrong krb5.conf in Apache, so pass in all
environment variables.

The KDC setup code was based heavily on the tests in the
gssproxy project.

https://fedorahosted.org/ipsilon/ticket/116

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Makefile
tests/helpers/common.py
tests/helpers/http.py
tests/httpd.conf
tests/testgssapi.py [new file with mode: 0755]
tests/tests.py