Products

Solutions

Resources

Partners

Community

About

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 ForumsAuthenticationAuthenticationSet Windows Login as default  in DNN 5.6.1 (238)Set Windows Login as default in DNN 5.6.1 (238)
Previous
 
Next
New Post
2/22/2011 5:26 AM
 
I successfully configured Active Directory Authenthication on Windows 2008 with auto login for internal IP address.  For extranet scenarios, I still want user to enter user name and password.  By default, login page show use "Standard" login.  User will have to click on "Windows Login" to enter user ID and password from Active Directory.   I wanted to set default to "Windows Login" so that user do not have to manually click on this button.  I tried using methodz mentioned in http://www.dotnetnuke.com/Resources/F...   but none of them worked with DNN 5.6.1 installation.  Any other ideas on how to set default to "Windows Login"?


Thank you
 
New Post
2/22/2011 11:43 AM
 
I'll try to test this sometime today.
 
New Post
3/17/2011 5:07 PM
 
I too am interested in exactly this solution.
 
New Post
3/25/2011 1:46 AM
 
Sorry for the delay in answering this post. I just stepped through the login code and it appears that the core architects made a change from the last time I looked at this (which I admit was a very long time ago). Basically, a check is made to see if one of the login controls loaded was the DNN login control if it was then it's the default login control. The only way around it is to either disable the Default Authentication under Admin->Extensions or make a change to the core code and recompile it. The change is only one line but you would have to do it every time you upgraded your portal.
 
New Post
1/15/2014 11:59 AM
 

Hi, I kind of found a way to make this possible.

First follow the instructions on this page to create a custom login page.

Then you would have to play a little bit with the login module settings. Go to Advanced Settings->Header and add the following code:

<script type="text/javascript">

$(document).ready(function(){

//hide the default login section
$("#dnn_ctr677_Login_DNN").hide();

//show the windows login section
$("#dnn_ctr677_Login_ActiveDirectory").show();

//remove class 'LoginTab' and 'LoginTabSelected' to the 'Standard' button

$("#dnn_ctr677_Login_DNN_l").removeClass("LoginTab");
$("#dnn_ctr677_Login_DNN_l").removeClass("LoginTabSelected");

//add 'LoginTab' class to the 'Standard' button
$("#dnn_ctr677_Login_DNN_l").addClass("LoginTab");

//remove class 'LoginTab' and 'LoginTabSelected' to the 'Windows Login' button

$("#dnn_ctr677_Login_ActiveDirectory_l").removeClass("LoginTab");
$("#dnn_ctr677_Login_ActiveDirectory_l").removeClass("LoginTabSelected");

//add 'LoginTab' class to the 'Windows Login' button

$("#dnn_ctr677_Login_ActiveDirectory_l").addClass("LoginTabSelected");

});

</script>

This will make the windows login active by default, just make sure the element ids and class names match with my code's.

Let me know if it works,

Ivan Sunga

Software Engineer

Genpact

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationSet Windows Login as default  in DNN 5.6.1 (238)Set Windows Login as default in DNN 5.6.1 (238)


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