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 ForumsAuthenticationAuthenticationMultiple Domain User Authentication using AD in DNNMultiple Domain User Authentication using AD in DNN
Previous
 
Next
New Post
5/21/2008 9:24 AM
 

I am trying to figure how to get Multi-Domain user authentication using Windows Authentication. We are currently on version 4.82 of DNN and  I thought Active Directory  would work and take care of this as long as the other domains groups were setup to match Windows AD.

 
New Post
5/21/2008 12:44 PM
 

I will add that I have the Latest 1.00.03 Active Directory Provider installed in DNN and cant login to DNN as any of the users on the other domains.  Thanks in advance for your help.

 
New Post
5/21/2008 2:25 PM
 

Multi-Domain has always been a problem that I haven't been able to code for (mainly because I don't have access to a multi-domain environment). My suggestion is to try seeing if you have access to the other domains using LDAP Browser (http://www.ldapbrowser.com/download).

 
New Post
5/22/2008 12:57 PM
Accepted Answer 

I installed the latest patch for the AD provider 1.0003 and it appears to have resolve the issue with not being able to login or authenticate users on different domains.

 
New Post
1/28/2009 4:58 PM
 

I modified the Login.ascx for multiple domains. I hope it helps.

<code>
<%@ Control language="vb" Inherits="DotNetNuke.Authentication.ActiveDirectory.Login, DotNetNuke.Authentication.ActiveDirectory" AutoEventWireup="false" Explicit="True" Codebehind="Login.ascx.vb" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls"%>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>

<script type="text/javascript">
function checkInput()
{
 var Proceed = 1;
 var Message;
    var usrname = document.getElementById('txtUsrname');
    var password = document.getElementById('<%= txtPassword.ClientID %>');
    var cboDomain = document.getElementById('cboDomain');

 while (Proceed == 1)
 {
  if (!usrname.value) {
   Message = "Please enter Username.";
   Proceed = 0;
   break;
  }
  if (!password.value) {
   Message = "Please enter Password.";
   Proceed = 0;
   break;
  }
  if (cboDomain.selectedIndex == 0 ) {
   Message = "Please select Domain.";
   Proceed = 0;
   break;
  }

  break;
 }

 if (Proceed == 1) {
  return true;
 }
 else {
   Message );
  return false;
 }
}

function validateLogin()
{
    var username = document.getElementById('<%= txtUsername.ClientID %>');
    var btn = document.getElementById("<%= cmdLogin.ClientID %>");
    var usrname = document.getElementById('txtUsrname');
    var cboDomain = document.getElementById('cboDomain');

    if (checkInput())
    {
    username.value = cboDomain.options[cboDomain.selectedIndex].value + "\\" + usrname.value;
    // cboDomain.options[cboDomain.selectedIndex].value + "\\" + usrname.value);

    btn.click();
    }
}
</script>

<table cellspacing="0" cellpadding="3" border="0" summary="SignIn Design Table" width="160">
 <tr>
  <td class="SubHead" align="center"><dnn:label id="plUsername" controlname="txtUsername" runat="server" text="UserName:"></dnn:label></td>
 </tr>
 <tr>
  <td  align="center">
  <asp:textbox id="txtUsername" width="0" Style="visibility:hidden;" runat="server" />
     <input type="text" id="txtUsrname" class="NormalTextBox" /></td>
 </tr>
 <tr>
  <td class="SubHead" align="center"><dnn:label id="plPassword" controlname="txtPassword" runat="server" text="Password:"></dnn:label></td>
 </tr>
 <tr>
  <td align="center"><asp:textbox id="txtPassword" columns="9" width="130" textmode="password" cssclass="NormalTextBox" runat="server" /></td>
 </tr>
 <tr>
  <td class="SubHead" align="center"><dnn:label id="plDomain" controlname="auth" runat="server" text="Domain:"></dnn:label></td>
 </tr>

 <tr>
        <td align="center">
            <select name="cboDomain" class="NormalTextBox">
                <option value="">- Please Select -</option>
                <option value="First">First Domain</option>
                <option value="Second">Second Domain</option>
                <option value="Third">Third Domain</option>
            </select>
        </td>
 </tr>

    <tr id="trCaptcha1" runat="server">
     <td class="SubHead" align="center"><dnn:label id="plCaptcha" controlname="ctlCaptcha" runat="server" text="Password:"></dnn:label></td>
    </tr>
    <tr id="trCaptcha2" runat="server">
     <td align="center"><dnn:captchacontrol id="ctlCaptcha" captchawidth="130" captchaheight="40" cssclass="Normal" runat="server" errorstyle-cssclass="NormalRed" /></td>
    </tr>
    <tr>
     <td id="tdLogin" runat="server" align="center">
     <asp:button id="cmdLogin" Style="visibility:hidden;" runat="server" />
        <input id="cmdLgin" type="button" value="Login" class="StandardButton" onclick="validateLogin();" />
     </td>
    </tr>
</table>
</code>

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationMultiple Domain User Authentication using AD in DNNMultiple Domain User Authentication using AD in DNN


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