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 ...Writing to db without user logged in?Writing to db without user logged in?
Previous
 
Next
New Post
10/5/2009 9:08 AM
 

I'm having issues with the IUSR.  I need to write information to the database while a user isn't logged in to DNN.  I'm assuming when this is the case the db priviledges are set to use IUSR instead of Network Service.  Now i've been told it's bad practice to give IUSR write priviledges but how else can i write to my db?

The reason i need to do this is that when a user searches our product database it grabs extra info from the web and slowely builds up a table of extra product data.  We also need to accept annonymous orders. 

How can i solve this?

 
New Post
10/5/2009 10:57 AM
 

There should not be a tie between the user account and the database. DNN can easily be configured with a specific database user account that has permissions to read/write.  Actually that is the default, the only way that the logged in user would change things is impersonation was on, and using a trusted connection, and each user had a database account.  In 99.999% of cases, that is NOT the use.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
10/6/2009 3:31 AM
 

hmm well all i know is that when a user logs in i can write to the db fine and when no-one is i can't.  The Network Services has write privs and the IUSR doesn't. 

I checked the impersonation tag and it's commented out.  I uncommented it and set it to false and the site wouldn't load.

Is there anything else you can recommend?

Other info: I'm loggin in to the database using Integrated security on a virtual Windows Server 2008

 
New Post
10/6/2009 8:37 AM
 

Scrub that, i added <identity impersonate="false"/> and it now works.

I'm not really sure whats happening here though?  Whats this tag do?  I'm assuming it's forcing the process to use Network Service.

 
New Post
10/6/2009 5:23 PM
 

AFAIK identity impersonation is turned on in IIS 7 Web site configuratio (ASP.Net authentication section) by default.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Writing to db without user logged in?Writing to db without user logged in?


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