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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationTrying deperately to use full AD integrationTrying deperately to use full AD integration
Previous
 
Next
New Post
4/20/2007 3:35 PM
 

I had posted this initially in the "Install It" forum but after thinking about it, it might be more well suited here in the AD forum.

I would like to thank the DNN community and associated developers out ther for creating such a robust and easy to use CMS. It will work wonderfully for us to use on our intranet is I can only get one more thing fixed!

My problem is that our system admins are very security aware. I have set up DNN to use AD authentication by removing the comment in the "web.config" file to read:
<add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" />
As well as windows authentication by uncommenting:
<authentication mode="Windows" /> 
<identity impersonate="true" />

I have set up IIS to use windows authentication and turned off anonymous access. It is also configured as a web application and is using .NET 20. as well. We also have a working SPN between the web server and the SQL server. (We have other DB driven apps on the server that work just fine.)

The connection string is valid to the SQL server as it has worked in the past. To get it to work, I had to add the "DOMAIN\AspNet" account to the database. The SQL Admin doesn't approve of that and only wants domain users to have access.

It then appears that IIS processess the global.asax BEFORE it gets the web.config file. Therefore, the code in the App_code/global.asax.vb gets run under the ASP.NET worker service account credentials. The global.asax code is trying to verify the DNN database and needs to see if it exists. If the worker service is not listed in the database, I get the error:
Login failed for user 'DOMAIN/dnn_svc' ...

My issue is that I need to only use the logged in user credentials. Has anyone figured out how to use integrated security and not have a hard coded password? HELP, please?!

Thanks in advance,

 - Todd

 
New Post
4/22/2007 2:52 PM
 

It's been my experience that you have to have a hard-coded password with .NET to override the ASPNET process account. In other words you'll have to add userName="domain\user" password="password" to the identity impersonate="true" line. What we've done for our AD integration at work is to use a user account that has very limited account access so even if per chance someone was able to get into the web.config they'd it'd do them pretty much no good.

 
New Post
4/22/2007 3:21 PM
 

There is also a command line application you can run that will encrypt the username and pwd in the identity tag and you do not have to do anything in you code to ready it. I will try to find the documentation on this and post it here.  I have used this for some internal application where I work and it is pretty sharp.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationTrying deperately to use full AD integrationTrying deperately to use full AD integration


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