-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to connect oracle database server running with keberos
PostPosted: Mon Apr 07, 2014 4:09 am 
Newbie

Joined: Mon Apr 07, 2014 3:53 am
Posts: 1
I'm new to Hibernate and Kerberos systems and trying to imply a pretty simple scenario: I want to make a connection to Oracle DB with Hibernate using Kerberos. I don't know how to configure Hibernate properly to work with Kerberos tickets (I'm currently working on Linux Eedhat platform)

I get a ticket from Kerberos - but don't know how to use it to authenticate to Oracle this is some of the code I wrote:

<hibernate-configuration>
<session-factory>

<!-- Database connection settings -->
<property name="connection.driver_class">oracle.jdbc.OracleDriver</property>

<property name="connection.url">jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=rh-srv.domain.local)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=OracleDB)))</property>

<property name="connection.username">local</property>
<property name="connection.password">local123</property>

<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>

<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>

<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>

<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">create</property>
<property name="hbmdl.auto">update</property>

<!-- Names the annotated entity class -->
<mapping class="hibernetconn.com.UserDetails"/>

</session-factory>
</hibernate-configuration>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.