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 ForumsAuthenticationAuthenticationAuto User Creation?Auto User Creation?
Previous
 
Next
New Post
5/29/2008 9:34 AM
 

Mike, I grabbed the DNN source and have it all setup on my development machine.  I put a breakpoint in the Global_BeginRequest method of Global.asax.vb so I could look at the HttpRequest object.  I see whenever anyone from the domain sends a request, the LogonUserIdentity.Name property does indeed contain a value of "OurDomain\LogonName", but no DNN user gets auto created.  I went to grab the ADSI source file from the project downloads, but the source actually has the install files in it.  It is missing the actual VB files.  Can you check on that? I would like to step through the ADSI code to see what is happening.

 
New Post
5/29/2008 12:42 PM
 

In the source version you'll see a file called ActiveDirectory Source Files.resources. That's actually a .zip file so you can either rename the extension or if you install the source version on your dev machines the files should be automatically extracted.

 
New Post
5/29/2008 2:00 PM
 

Doh, that's right. It's been about 3 years since I did DNN development and forgot that.

Anyhow, I installed the source version.  I placed breakpoints on the 1st line of OnAuthenticateRequest method in both the DotNetNuke.HttpModules.Membership.MembershipModule and DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule. 

What I am seeing is:

if the user already has a DNN user account  with a username of "Domain\Loginname" OnAuthenticateRequest is called in the MembershipModule and then in the AuthenticationModule.

If they are a new user to the site, OnAuthenticateRequest is called in the MembershipModule but never progress past that point.  But I can see in the MembershipModule that the user has IsAuthenticated=true and their LogonName is "Domain\Loginname".

Have any idea whats going on?

 
New Post
5/29/2008 4:20 PM
 

I'll have to do some checking. I couldn't even find DotNetNuke.HttpModules.Membership.MembershipModule in my quick search but I've got a meeting I've got to go to so I'll try to look this evening at home.

But, when you run the code is the breakpoint in the AuthenticationModule loading the symbols (solid red vs. just a red outline of a circle)?

 
New Post
5/29/2008 11:07 PM
 

Okay I found the file .

However I don't see any reason why it wouldn't work properly still. Besides my questions above:

Do you have the following in the <httpModules> section of your web.config?

<add name="Authentication" type="DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule, DotNetNuke.Authentication.ActiveDirectory" />
 
What kind of authentication are you using in your web.config (Forms or Windows)?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuto User Creation?Auto User Creation?


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