-->
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.  [ 3 posts ] 
Author Message
 Post subject: Customized DB Login
PostPosted: Fri Sep 30, 2005 4:38 pm 
Newbie

Joined: Fri Sep 30, 2005 4:21 pm
Posts: 2
Hi,

I'm starting to use Oracle OID (LDAP like) so as I can audit database access by system user and not by (a single) database user. But to accomplish this I need to send a username/password to the ConnectionPool (or set in the connection, if possible) each time a user makes the login on my application. It's necessary so as the OID knows who's executing the SQL so as it can audit it's access.

To clarify: Using Oracle OID I can connect my application to the database via a single database/global user, but to audit each different user it asks for it to personally login on it by taking it's credentials.

What I need is something like this:

hibSession = factorySession.openSession(USERNAME, PWD);

So, my question is: is it possible?

Thanks a lot!

Expedito (Brazil)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 5:05 pm 
Beginner
Beginner

Joined: Tue Apr 05, 2005 4:27 pm
Posts: 40
Location: canada
don't you just want to set these properties on the connection?

you can get the jdbc connection from the session with

Code:
hibSession.connection();


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 7:41 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Implement a custom ConnectionProvider.


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

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.