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 ForumsAuthenticationAuthenticationAuthentication Problems Child Portals using Auto LoginAuthentication Problems Child Portals using Auto Login
Previous
 
Next
New Post
7/2/2007 1:44 PM
 

There's a pinned post at the top of the forum on setting up Authentication. If you uncomment the authentication line and put it in the Intratnet or Trusted sites of your Internet Options (this can be done to domain computers using group policy) they should be logged in automatically. The only thing I had to do differently than the instructions on our intranet is I had to uncomment <identity impersonate="true"/> and ad userName="domain\username" and password="password" to the line. Any user account will work as long as it can read the AD (which most can). I used a user with very minimal rights on the domain.

As for where you fixed it....I'm not 100% sure that'll work. I can't remember the line number but you only needed to change it in DNNMembershipModule.vb. That's where the code is currently failing.

 
New Post
7/17/2007 10:38 AM
 

Can someone describe the Site Log errors they were/are getting when using AD forms authentication with child portals?

In my setup I use child portals but each one has it's own HTTP alias (http://child1,   http://child2,  etc.)  I started seeing errors but only with certain individuals stating "Login Failure" but no other log entries.  Others including myself which have an account on 5 child portals have never received an error.   I am investigating a fix.

Thanks...

 
New Post
11/13/2007 7:44 PM
 

This is still an issue with 4.6.2.  The changes I made are listed bellow to work around it.   Just a recap of why these changes are needed:

  • When a user is created through AD, the password is not valid, so a call to GetUser which relies on username and password will fail.
  • Because it fails, the system will try to create a user, however the username already exists which creates an issue.  In my case, it goes into an endless loop of authentication and rejection.
  • I have not tested this against a mixed login environment.  Mine is purely AD based with no forms login.

A current issue with the authentication provider method is that when you get down to the level of CreateUser in the AspNetMembershipProvider, you have no idea which provider sent you there.  I think all of them need to include a DotNetNuke.Services.Authentication.AuthenticationController.SetAuthenticationType call.

DotNetNuke.Authentication.ActiveDirectory.UserController
Public Function AddDNNUser(ByVal AuthenticationUser As UserInfo) As UserCreateStatus
    Dim _portalSettings As PortalSettings = PortalController.GetCurrentPortalSettings
    Dim objSecurity As New PortalSecurity

    DotNetNuke.Services.Authentication.AuthenticationController.SetAuthenticationType("ActiveDirectory")
   
    <snip>

DotNetNuke.Security.Membership.AspNetMembershipProvider

Public Overrides Function CreateUser(ByRef user As UserInfo) As UserCreateStatus
    Dim createStatus As UserCreateStatus

    Dim authType As DotNetNuke.Services.Authentication.AuthenticationInfo = DotNetNuke.Services.Authentication.AuthenticationController.GetAuthenticationType()
    Dim isADSIProvider As Boolean = False
    Dim ProviderTypeName As String = String.Empty
    If Not authType Is Nothing Then ProviderTypeName = authType.AuthenticationType
    isADSIProvider = (ProviderTypeName.IndexOf("ActiveDirectory") >= 0) Or (ProviderTypeName.IndexOf("Authentication.ADSIProvider") >= 0)

    Try
        ' check if username exists in database for any portal
        Dim objVerifyUser As UserInfo = GetUserByUserName(Null.NullInteger, user.Username, False)
        If Not objVerifyUser Is Nothing Then
            If objVerifyUser.IsSuperUser Then
                ' the username belongs to an existing super user
                createStatus = UserCreateStatus.UserAlreadyRegistered
            Else
                ' the username exists so we should now verify the password

                If isADSIProvider Or ValidateUser(objVerifyUser.PortalID, user.Username, user.Membership.Password) Then

                <snip>

 
New Post
12/9/2007 9:05 AM
 

I have 3 multiple portals (DNN 4.7.0) configured for Active Directory auto login. The default portal's (or the first parent portalID= 0) auto login works fine all the time.

However the two other parent portals' auto login does not work and the user is presented with the 'Login' link, which when pressed generates the following dump:

AssemblyVersion: 04.07.00
PortalID: 4
PortalName: Reform
UserID: -1
UserName:
ActiveTabID: 72
ActiveTabName: Home
RawURL: /reform/Home/tabid/72/ctl/Login/Default.aspx?returnurl=%2freform%2fDefault.aspx
AbsoluteURL: /Reform/Default.aspx
AbsoluteURLReferrer: http://eutdev01/reform/
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 2a7a933a-80be-4970-9840-960219de9b15
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Admin.Authentication.Login.DisplayLoginControl
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Admin.Authentication.Login.DisplayLoginControl(AuthenticationLoginBase authLoginControl, Boolean addHeader, Boolean addFooter) at DotNetNuke.Modules.Admin.Authentication.Login.BindLogin() at DotNetNuke.Modules.Admin.Authentication.Login.ShowPanel() at DotNetNuke.Modules.Admin.Authentication.Login.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:

The only way to get the auto login for the other parent portals (not the default portal) is to navigate to the URL

 http://localhost/<VDIRNAME>/desktopmodules/authenticationservices/activedirectory/windowssignin.aspx

Is there any fix yet for this? Any workaround?

 
New Post
12/9/2007 12:14 PM
 

Not at this time and I missed John's post above on a possible fix so it missed going into the version I submitted to the release tracker yesterday.

John, could you submit your changes to Gemini if you haven't already.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuthentication Problems Child Portals using Auto LoginAuthentication Problems Child Portals using Auto Login


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