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 ForumsAuthenticationAuthenticationQuestion about impersonationQuestion about impersonation
Previous
 
Next
New Post
9/8/2009 5:18 AM
 

Hello,

I have an intranet site currently running DNN 4.9.4, working well with AD authentication provider. forms authentication is specified in web.config, since we need to allow both domain users and DNN users (for example at host level), and impersonation is enabled:

<forms name=".DOTNETNUKE" protection="All" timeout="525600" cookieless="UseCookies" slidingExpiration="true" />
      </authentication>
<identity impersonate="true" userName="domain\intranetuser" password="pwdpwd" />

Question is: shouldn't users inherit this profile when accessing the file system?

 

Problem: in a custom module I  need to access some files on a remote server; I have a line of code that gets a list of files via SMB, and then displays them:

Dim filesList() As String = IO.Directory.GetFiles("\\server\path\userfolder")

This is working perfectly when current user is an administrator, but I get access denied errors for normal domain users. However, SMB path points to folders for which permissions are given for each user: if I open the same path in Windows Explorer I can see the files. So why is this failing from code?
I verified that both HttpContext.Current.User.Identity.Name and System.Threading.Thread.CurrentPrincipal.Identity.Name show the currently logged-on user (DOMAIN\Username -  with impersonation enabled I'd say I should see the user I put in web.config here, but this is not -), which should be ok since permissions are given for that user. But I get access denied.

 Can anybody tell where's my error?

Thank you,

al.

 

 
New Post
9/12/2009 10:34 AM
 

 I'm not sure where it's gone sideways for you as I have a similar module in place on our intranet site and haven't run into any problems. Is there anything showing up in either the webserver's logs or the remote servers logs?

 
New Post
9/22/2009 10:44 AM
 

Hi Mike,

thanks for answering. I didn't find anything useful: nothing in IIS logs, and nothing from the remote server (an AS400). The strange thing is  the user account being used apparently is the logged-on user, who does have permissions on the remote folder (which he can actually navigate via windows explorer)... but permissions are not granted when accessing the remote folder by my code.

I had to find a quick solution and then gave up with this, reverting to an FTP call: I did not understand the problem, but I tought this could eventually depend on the AS400 and the way it handles security checks via SMB: only doing suppositions anyway.

Don't think there's much people here interested in DNN talking with an AS400, but if there's somebody... feel free to mail me to share info.
Thanks.

al.

 
New Post
9/23/2009 7:40 AM
 

Hi

I am trying to get AD authentication to work with my DNN site. I have done this according to this post in the forum but still no luck. The only error message I get is "Login Failed, remember that Passwords are case sensitive". It looks like the ad authentication module is not active some how. Am I missing something?

I am using dnn 5.01.02 and tried both AD auth 5.0.1 and 5.0.2 on w2k8 r2 and IIS 7.0

Can anyone please point me in the right direction? I can provide you with more info if neccesary.

Thanks,
guybrun

 


 

 

 

 

 
New Post
9/26/2009 12:28 PM
 

Guybrun, do you get logged in if you go link directly to http://<yourdnnsite>/desktopmodules/authenticationservices/activedirectory/windowssignin.aspx?

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationQuestion about impersonationQuestion about impersonation


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