Unable to load org.jboss.security.negotiation.KerberosLoginModule class
nikoss Dec 27, 2016 8:52 PMI am using Wildfly 10.1.0 and I want to enable Datasource Kerberos authentication
The relevant part of the security domain is:
<security-domain name="DatabaseUser" cache-type="default"> <authentication> <login-module code="Kerberos" flag="required"> <module-option name="useKeyTab" value="true"/> <module-option name="keyTab" value="/usr/share/wildfly/wildfly-10.1.0.Final/standalone/configuration/wildfly.keytab"/> <module-option name="principal" value="wildfly@NOMISMA"/> <module-option name="doNotPrompt" value="true"/> <module-option name="isInitiator" value="true"/> <module-option name="storeKey" value="true"/> <module-option name="refreshKrb5Config" value="true"/> <module-option name="debug" value="true"/> </login-module> </authentication> </security-domain>
The problem is that I receive the following exception:
02:27:34,856 DEBUG [org.jboss.security] (MSC service thread 1-2) PBOX00206: Login failure: javax.security.auth.login.LoginException:
unable to find LoginModule class: org.jboss.security.negotiation.KerberosLoginModule from
[Module "org.picketbox:main" from local module loader @1c2c22f3 (finder: local module finder @18e8568
(roots: /usr/share/wildfly/wildfly-10.1.0.Final/modules,/usr/share/wildfly/wildfly-10.1.0.Final/modules/system/layers/base))]
Checking the contents of the modules directory, I can see in that the following directory exists
modules/system/layers/base/org/jboss/security/negotiation/main
and it has the contents:
-rw-r--r--. 1 505 505 41667 Aug 19 02:12 jboss-negotiation-common-3.0.2.Final.jar -rw-r--r--. 1 505 505 44914 Aug 19 02:12 jboss-negotiation-extras-3.0.2.Final.jar -rw-r--r--. 1 505 505 14860 Aug 19 02:12 jboss-negotiation-ntlm-3.0.2.Final.jar -rw-r--r--. 1 505 505 33894 Aug 19 02:12 jboss-negotiation-spnego-3.0.2.Final.jar -rw-r--r--. 1 505 505 1943 Aug 19 02:12 module.xml
What should I do in order to make the org.jboss.security.negotiation.KerberosLoginModule class visible to Wildfly?