JDBC DB2 DataSource authentication kerberos
Issue
-
We are able to authenticate users via LDAP and SPNEGO with Kerberos on the WebApp. The application needs to access to DB2 via JDBC universal Drivers (type 4).
-
We tried several DS configuration but the result is always the same: DS is not able to obtain user credential and we get: Invalid credential.
-
DS Example :
<xa-datasource> <jndi-name>DB2XADS</jndi-name> <xa-datasource-class>com.ibm.db2.jcc.DB2XADataSource</xa-datasource-class> <xa-datasource-property name="databaseName">DB2T</xa-datasource-property> <xa-datasource-property name="serverName">TEST</xa-datasource-property> <xa-datasource-property name="driverType">4</xa-datasource-property> <xa-datasource-property name="kerberosServerPrincipal">db2/DB2T@MY.DOMAIN.IT</xa-datasource-property> <xa-datasource-property name="securityMechanism">11</xa-datasource-property> <security-domain>MySecurityDomain</security-domain> <xa-datasource-property name="PortNumber">60014</xa-datasource-property> <isSameRM-override-value>false</isSameRM-override-value> <metadata> <type-mapping>DB2</type-mapping> </metadata> </xa-datasource>
Environment
- JBoss Enterprise Application Platform 5.x
- RHEL 5.5 64bit
- KVM Virtual Machine
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.