spring-security-kerberos
spring-security-kerberos copied to clipboard
Added optional gss config file to GlobalSunJaasKerberosConfig
Moving from java 7 to java 8 suddenly the GSSContext.acceptSecContext(kerberosTicket, 0, kerberosTicket.length) raised an exception due to a missing file: gss.conf.
Turns out the config lookup in ConfigFile$Spi.
As a result the SunJaasKerberosTicketValidator is now affeced by other services on the classpath setting 'java.security.auth.login.config' to non existing resources, like for example the Smack SASLGSSAPIMechanism which configures a non existing 'gss.conf' as 'java.se
This patch links the 'policy.allowSystemProperty' to an optional 'java.security.auth.login.config' managed by GlobalSunJaasKerberosConfig. This way the ConfigFile$Spi.
Change-Id: I07a1a2a2cc95c1338b981a2737f59b0517493526