Connecting to SAP HANA DB using jdbc and Kerberos Delegation

Can I connect to SAP HANA DB from my java application using jdbc and Kerberos Delegation?

Now I can create a jdbc connection to SAP HANA DB without entering login and password, using only Windows login. For this, I have set the external Kerberos identity for the db user in the SAP HANA admin console (user1 @domain_name) and used the "NativeAuthentification = true" property when creating the jdbc connection. Then I login to Windows with user1 and start my application and I can connect to SAP HANA DB and select data.

But I need to login to Windows on the client machine, run the java client application, connect to my application server, the application server needs to connect to SAP HANA DB with the permissions of the connected user and select the data given to that user.

In a client java application, I got a kerberos token using waffle-jna library, then I use it to connect to my application server using Spring Security (it works), but I cannot create a jdbc connection to SAP HANA DB using this token ... I cannot use Kerberos delegation.

Does anyone know something about Kerberos delegation in SAP HANA DB via jdbc? Thank.

+3


source to share





All Articles