Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brian Patton 33 posts 103 karma points
    Feb 07, 2013 @ 23:02
    Brian Patton
    0

    Prompt for credentials

    I want to use this project in a large website I'm getting ready to develop, but I am in a situation where I will need to prompt for login using Active Directory rather than using Auto-login in some cases.

    For instance, when a user is off-site and not directly logged into our Domain, I want them to be able to access the protected areas of the site.  Is there any way to accomplish this using your project?  Or maybe there is a simpler way to accomplish this that I'm not aware of.  

    Thanks!

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Feb 07, 2013 @ 23:27
    Kevin Jump
    0

    You could change the way the logon user control works. (code in WindowsLogon.ascx.cs)

    if a user is in your domain their browser should pass intergrated credentials, the code automatically logs the user on when this happens. 

    I think you could check the "AUTH_TYPE" server variable (http://msdn.microsoft.com/en-gb/library/ms524602(v=vs.90).aspx) and if this isn't set you could then use the login page to collect the user credentials like a normal login page. 

     

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Feb 07, 2013 @ 23:32
    Kevin Jump
    0

    ofcouse you could just prompt is LOGON_USER is blank. - probibly better . 

  • Brian Patton 33 posts 103 karma points
    Feb 08, 2013 @ 01:05
    Brian Patton
    0

    Thanks for the quick reply ... I think I understand ... sorry, a bit of a novice here.  There are sections of the site that I want to be available to anyone (logged in or not).  By disabling the anonymous access, won't that require that ALL users of the website log in? 

Please Sign in or register to post replies

Write your reply to:

Draft