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 ForumsAuthenticationAuthenticationAD Provider & Unauthenticated Web ServicesAD Provider & Unauthenticated Web Services
Previous
 
Next
New Post
5/20/2008 6:14 PM
 

I just installed the AD provider on our Intranet and was having a pretty big problem with accessing web services within the desktop modules directory that were not going through the authentication.   The DNN system kept redirecting to the Windowssignin.aspx page.   My fix was actually a quick code addition to the ActiveDirectory module to keep it from doing the redirect if the file extension was .asmx. 

The file in question is the AuthenticationModule.vb, Line 63.   I changed it from :

                If Request.Url.LocalPath.ToLower.EndsWith("install.aspx") OrElse Request.Url.LocalPath.ToLower.EndsWith("installwizard.aspx") Then
                    Exit Sub
                End If

To this :

                If Request.Url.LocalPath.ToLower.EndsWith("install.aspx") OrElse Request.Url.LocalPath.ToLower.EndsWith("installwizard.aspx") OrElse _
                             Request.Url.LocalPath.ToLower.EndsWith(".asmx") Then
                    Exit Sub
                End If

Hope that this will help someone keep from going through the same thing that I went through with trying to figure out a solution for this.   It would also be nice if there was an option in the next version of the AD provider that you can keep from redirecting with certain filetypes or even just certain files, and that you could set that via the settings.

Chaitanya Marvici

 
New Post
5/21/2008 1:04 AM
 

Thanks Chaitanya. I'll consider doing something like that. Could you post this in the Public section of Gemini (http://Isupport.dotnetnuke.com) so that I have a reminder about it.

 
New Post
11/18/2008 5:27 PM
 

Chaitanya Marvici wrote
 

I just installed the AD provider on our Intranet and was having a pretty big problem with accessing web services within the desktop modules directory that were not going through the authentication.   The DNN system kept redirecting to the Windowssignin.aspx page.   My fix was actually a quick code addition to the ActiveDirectory module to keep it from doing the redirect if the file extension was .asmx. 

The file in question is the AuthenticationModule.vb, Line 63.   I changed it from :

                If Request.Url.LocalPath.ToLower.EndsWith("install.aspx") OrElse Request.Url.LocalPath.ToLower.EndsWith("installwizard.aspx") Then
                    Exit Sub
                End If

To this :

                If Request.Url.LocalPath.ToLower.EndsWith("install.aspx") OrElse Request.Url.LocalPath.ToLower.EndsWith("installwizard.aspx") OrElse _
                             Request.Url.LocalPath.ToLower.EndsWith(".asmx") Then
                    Exit Sub
                End If

Hope that this will help someone keep from going through the same thing that I went through with trying to figure out a solution for this.   It would also be nice if there was an option in the next version of the AD provider that you can keep from redirecting with certain filetypes or even just certain files, and that you could set that via the settings.

Chaitanya Marvici

 

I ended up having to modify the code to Request.Url.LocalPath.ToLower.Contains(".asmx").  Please notice that I used "Contains" instead of "EndsWith". When using the ajaxcontroltoolkit autocompleteextender and what seems an authentication time out, the url being called was http:.../mywebservice.asmx/mywebmethod.  Obviously, the url was not ending in .asmx.  I would get an http response code of 302 which eventually somewhere down the line was changed to an http response code of 401 (unauthorized).  I spun my wheels a couple of days checking security on the .asmx file, the directory the file.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAD Provider & Unauthenticated Web ServicesAD Provider & Unauthenticated Web Services


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