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 ForumsAuthenticationAuthenticationDnn 4.8.4  Windows login failureDnn 4.8.4 Windows login failure
Previous
 
Next
New Post
8/27/2008 1:32 PM
 

You mean the actuall source code or where the files are installed? The files are installed into DesktopModules/AuthenticationServices/ActiveDirectory. The actual .vb files for the provider are in the .resources file in the source version download (for 01.00.03 and lower and resources.zip for .04). The .resources file is actually just a .zip so it can be renamed and extraced into the directory I mentioned above (or if the source version is installed on the DNN the .resources file is automatically extracted).

 
New Post
8/27/2008 6:46 PM
 

I was trying to build the DLL so I could debug it.  Unzipped and after a few patches (msbuild tasks, and a hard coded d:\ path) I got a debug version.

Anyway.  When I install the provider, the AD query comes back with 2 domains:

blah.net and rootblah.net,  I don't know what the rootblah.net is.  So in the settings I put:

dc=blah,dc=net

Debugging:

When I login through the "Login" control, control in: 

Public Shared Function GetUserEntryByName(ByVal Name As String) As DirectoryEntry
            ' Create search object then assign required params to get user entry in Active Directory
            Dim objSearch As New ADSI.Search(GetRootDomain)
            Dim userEntries As ArrayList
            Dim userEntry As DirectoryEntry
            Dim userDomain As ADSI.Domain
 

 GetRootDomain goes to the cache and pulls out rootblah.net as the domain name and is the source of the error.

If I interceed with the debugger in GetRootDomain and switch the domain to blah.net the login will work.

 

As for calling from windowssignin.aspx, it also goes to the config cache and doesn't appear to hit active directory each time.  I didn't debug, but I bet it has cached the correct blah.net.

Steve

 
New Post
8/27/2008 8:06 PM
 

Yes I need to get some instructions out for the new .04 version now that it's officially released. I was planning on doing so tonight but it looks like I'm going to be stuck at work for a few more hours.

Anyways, check the ModuleSettings table and make sure that rootblah.net is there (it's a domain that's been defined by someone on your network though it may not actually be used). I can't remember the field to look in but it'll be with all the other provider entries (sorry my mind is mush right now).

 
New Post
8/28/2008 1:27 AM
 

I install the AD v. 1.0.4, but the error is repeated.

Very odd, When I input nothing in "Root domain" and "user name" box The Dnn find also 2 domain. (impersonate uncomment or comment).

 
New Post
8/28/2008 11:55 AM
 

This mornings debug session shows that rootblah.net appears to be a container that has blah.net in it.  ADSI.Search of rootblah.com fails to find anything.  I did find the failing code and have my site working.  In utilities.vb:ValidateDomainPath, it requires the domain name to be in format GC://DC=blah,DC=net,  this doesn't match the doc's which says to use DC=blah,DC=net.  I imagine that somebody was supposed to tack on a GC:// to the user input, and it's not happening.  In my authentication page I tacked on a GC:// (and upppercased my DC's just in case).  and all works fine.  Looking at the below code, any syntax error and you look up the root domain rootblah.net and that doesn't work for us.

 

Steve

 

        Public Shared Function ValidateDomainPath(ByVal Path As String, Optional ByVal ADSIPath As ADSI.Path = ADSI.Path.GC) As String
            ' If root domain is not specified in site settings, we start from top root forest
            If Path.Length = 0 Then
                Return GetRootForestPath()
            ElseIf (Path.IndexOf("DC=") <> -1) And (Path.IndexOf("://") <> -1) Then
                Return Path
            ElseIf (Path.IndexOf(".") <> -1) Then
                ' "ttt.com.vn" format,  it's possible for "LDAP://ttt.com.vn" format to access Authentication, however GC:// gives better performance
                Return ConvertToDistinguished(Path)
            Else
                ' Invalid path, so we get root path from Active Directory
                Return GetRootForestPath()
            End If
            'End If
        End Function
 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationDnn 4.8.4  Windows login failureDnn 4.8.4 Windows login failure


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