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 ForumsAuthenticationAuthenticationCaptcha issue for one portal, but not anotherCaptcha issue for one portal, but not another
Previous
 
Next
New Post
9/8/2011 2:25 PM
 
I'm having a problem with getting the captcha image to show up in our test environment.  We have DNN 5.6.2.  And we have two portals running off the same database, same servers, and same CPDNN directory tree; we'll call one site1.example.com and the other site2.example.com.  Both domain names resolve to the same IP.  And both portals have been working in general.  Both have Active Directory authentication turned on (v5.0.2).  I started describing the issue in this thread: http://www.dotnetnuke.com/Resources/Forums/forumid/210/postid/430813/scope/posts.aspx

But for some reason I can't seem to reply to that one anymore.

My issue is trying to enable captcha images on the AD login page.  I found the 'Security_CaptchaLogin' setting in the dbo.PortalSettings table, and that does seem to invoke the control.  My problem is that one of the sites shows a broken captcha image, while the other site works fine.  If I go to the login page for site2 (http://site2.example.com/login.aspx) the image captcha shows the broken image icon.  The same login page for site1 does not have this problem.  Testing a bit further, I tried turning on DNN default auth on both sites, and enabling captcha.  Both sites show the image correctly for DNN auth, but still only site2 shows a broken image captcha for windows/AD login.

If I find the URL for the image captcha and try to navigate to that, I think I get a little closer to understanding the problem.  The URL for the image captcha on site1 is:
http://site1.example.com/DesktopModules/AuthenticationServices/ActiveDirectory/ImageChallenge.captcha.aspx?captcha=blah&alias=site1.example.com

but on site2 its redirected to:
http://site2.example.com/login.aspx?ReturnUrl=%2fDesktopModules%2fAuthenticationServices%2fActiveDirectory%2fImageChallenge.captcha.aspx%3fcaptcha%3dblahblah%26alias%3dtsite2.example.com&captcha=yadda&alias=site2.example.com
(i cut out the long nonsense numbers)


Can someone help me understand why this is happening?  Why would the captcha image try to redirect to the login page?  Why would this only happen on one of the sites and not the other?  What can I do to fix it?
 
New Post
9/8/2011 4:16 PM
 
I'd really have to dig through the code for the provider but I'm surprised it's working at all as I never accounted for captcha in the first place mainly because I didn't think it would be relevant when logging in with an AD login. This was back in the day when you had to enter your username as DOMAIN\username and I figured the chances of a script being able to know the correct format of how to enter the username were somewhere between slim and none. If there is any captcha code in the provider (there might be) it's either commented out or ignored.

Part of me has never understood the reasoning for using captcha on a login page. Anonymous forums/blogs/etc. I understand it but not for logins. However that said, I'll try to get a test bed setup so that I can look at implementing it and how to. As for why you're getting the image on one site and not the second (I assume they're both portals in the same DNN install) I can't say.
 
New Post
9/8/2011 4:56 PM
 
Well, I don't particularly understand it either.  But I'm not really a security guy.  I was asked to put this in place, so I'm trying to figure out how.

But, yes, both sites are on the same DNN install.  On the same server.  The same DB.  Same file directory.  Same web.config.  Same IIS site. Both are using AD logins.  The problem comes up on our test environment.  I was able to get both sites to use the captcha on the AD login page on the dev environment.  Dev has a very similar setup (both sites have same db, file system, web.config, etc). 

I very much appreciate any help or guidance.  Thank you.
 
New Post
9/20/2011 10:44 AM
 
Have you had a chance to look into this?  Do you have any suggestions?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationCaptcha issue for one portal, but not anotherCaptcha issue for one portal, but not another


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