Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SQL Server domain account - how to make it workSQL Server domain account - how to make it work
Previous
 
Next
New Post
8/25/2009 1:07 PM
 

Hi,  My client wants to use a domain account in the connection string to the SQL Server database (i.e. create a login on the SQL Server using Windows authentication - and use this login to access the database used by the website).

So I tried this on localhost - creating an login for local machine user Al-Laptop-2008\Al in Security/Logins.

I then added a new user named al to the DNN database which is tied to thge server login Al-Laptop-2008\Al - and added him to the db_owner role.

In the connection string, I am using al as the user id, and the password for this local machine account as the password - but I am not able to connect to the database used by the DNN site.

Here is the connection string I'm using.

. <add name="SiteSqlServer" connectionString="Data Source=AL-LAPTOP-2008\SQLEXPRESS;Initial Catalog=blahblah;User ID=al;Password=mypassword" providerName="System.Data.SqlClient" />
 

What am I missing?

 

 

 

 
New Post
8/25/2009 3:16 PM
 

You'd be better off to use the set the username and password as the identity of the application pool and then simply use a connection string formatted for integrated security such as: <add name="SiteSqlServer" connectionString="Data Source=<servername>;Initial Catalog=<dbname>;Integrated Security=True" providerName="System.Data.SqlClient" />

This also provides some protection in case your file system were ever compromised by not putting passwords in files.


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
8/26/2009 11:51 AM
 

Thanks for the feedback.

Not being too proficient in IIS - what is the procedure to "set the username and password as the identity of the application pool"? 

Thanks in advance.

 
New Post
8/26/2009 12:02 PM
 

Allan,

in IIS manager, you are able to specify the app pool to be used by the web site and also for the app pool the windows user account to be used. if you use the same user account for SQL server login, you simply need to specify using integrated security in connection string within your web.config file.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/26/2009 6:41 PM
 

Thanks guys - it works like a charm !


Al

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SQL Server domain account - how to make it workSQL Server domain account - how to make it work


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out