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: NHibernate connection string security
PostPosted: Fri Aug 11, 2006 9:50 am 
Newbie

Joined: Mon Apr 10, 2006 11:45 pm
Posts: 17
I wanted to use the aspnet_setreg utility as described in this article: http://support.microsoft.com/default.as ... us;Q329290 to gain the security benefits of storing the username/pw in the registry. However, when I replace the username/pw fields in the NHibernate web.config field "<property name="connection.connection_string">" it gives me the following exception:
NHibernate.ADOException: cannot open connection ---> NHibernate.ADOException: Could not create connection from Driver ---> MySql.Data.MySqlClient.MySqlException: #28000Access denied for user 'registry:HKLM\SO'@'localhost' (using password: YES)

I gave read access to the ASPNET user so I'm wondering if NHibernate is trying to simply use the specified registry connection string as the username/pw which would obviously not work.

I'm wondering if I'm just being stupid and should put those username/pw fields somewhere else or if there is a better way to have connection string security with NHibernate.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 14, 2006 4:57 pm 
Newbie

Joined: Mon Apr 10, 2006 11:45 pm
Posts: 17
Does anyone have other suggestions on how to secure the connection string in the web.config file?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 11:30 am 
Newbie

Joined: Mon Apr 10, 2006 11:45 pm
Posts: 17
I've looked at some of the suggestions in this thread:
http://forum.hibernate.org/viewtopic.php?t=952838

Well, if anyone is looking for this in the future, I've decided to dynamically build my connection string and store the registry settings in the web.config file just like the tutorial for aspnet_setreg says.


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.