cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC with Single Sign On

Former Member
0 Kudos

Hi SCN,

I try to initiate a raw JDBC connection with the use of SSO authentication.

I tried something like this, but the connection still fails with invalid username or password.

    Class.forName("com.sap.db.jdbc.Driver");
    Properties props=new Properties();
    props.setProperty("nativeAuthentication", "true");
    props.setProperty("authentication","DatabaseMapping");
    Connection con=DriverManager.getConnection("jdbc:sap://10.0.0.1:31000",props);

Has someone have a hint ?

Regards

Volker

Accepted Solutions (0)

Answers (1)

Answers (1)

AtulKumarJain
Active Contributor
0 Kudos

Dear Volker,

You have to check differnt setting for SSO in HANA.

Please go through below link you may get idea to point out the root cause.

Best Regards,

Atul

Former Member
0 Kudos

Hi Atul,

thanks for you reply. I already went through those documents, but the problem is, that I dont want to create a connection in a BI environment. I want to use the connection in a native JAVA environment.

I mean working with the HANA Studio, I only have to click on 'Authentication by current operating system user' and everything works out of the box without setting any paths or create additional files.

Regards

Volker