Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  Clarification on functionality + Error message
Previous Previous
 
Next Next
New Post 11/27/2007 8:22 AM
User is offline Kel Way
34 posts
10th Ranked


Clarification on functionality + Error message 

Hi,

I've read through most of the recent posts on this forum and I remain confused with one thing.  Even when I disable the AD authentication provider, I still am able to achieve an automatic sign-in with my windows credentials passing through.  I think this must be normal and outside the scope of what the AD provider offers -- something made possible by configuring IIS for windows authentication and correctly applying the security settings to the windowssignin.aspx as documented.  Someone please confirm that this is normal behavior and that the AD provider isn't somehow doing work while disabled.  Note it even happened after uninstalling the provider all together, so I'm pretty confident.  I *thought* the provider was working when a new user could hit the site and a new account was added with their domain credentials etc... but I began to suspect something when I read a post suggesting that fields like first name, last name, etc. should have been pulled from the AD profile (the fields are indeed populated in the Active Directory).

Also, I'm getting this error when trying to update the provider settings (Domain/Username/password screen).  I reinstalled the provider with the same results...

Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Authentication.ActiveDirectory.ADSI.Utilities.AddADSIPath(String Path, Path ADSIPath) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Utilities.GetRootEntry(Path ADSIPath) at DotNetNuke.Authentication.ActiveDirectory.ADSI.ADSIProvider.GetNetworkStatus() at DotNetNuke.Authentication.ActiveDirectory.Settings.UpdateSettings() --- End of inner exception stack trace ---

Big thanks! Kel

 
New Post 11/27/2007 11:55 AM
User is offline Mike Horton
2960 posts
dnn.gmss.org
5th Ranked






Re: Clarification on functionality + Error message 

There is a bug in the current version that where the provider doesn't become disabled when unchecked though if it's removed then automatic login shouldn't be working unless, possibly, you've got remnants of a previous version still in your DNN directories (possible if the site was originally 4.5.5 or lower).

I think my 2nd post from this thread (http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/89/threadid/177288/scope/posts/Default.aspx) might fix error message.

Anyways, open up your ModuleSettings table in the database and look for AD_ProviderTypeName. Change the value thats in there (something like DotNetNuke.Security......) and replace the cell with DotNetNuke.Authentication.ActiveDirectory.ADSI.ADSIProvider, DotNetNuke.Authentication.ActiveDirectory. That should do the trick.

 
New Post 11/27/2007 1:33 PM
User is offline JHughes
28 posts
10th Ranked


Re: Clarification on functionality + Error message 

I  have the same error occuring when I attempt to "update settings", adding Active Directory settings.  This was a fresh install of DNN 4.6.2.  I did check the AD_ProviderTypeName cell and found the entry you mention already there.  Not quite sure where I should go next.

Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Authentication.ActiveDirectory.ADSI.Utilities.AddADSIPath(String Path, Path ADSIPath) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Utilities.GetRootEntry(Path ADSIPath) at DotNetNuke.Authentication.ActiveDirectory.ADSI.ADSIProvider.GetNetworkStatus() at DotNetNuke.Authentication.ActiveDirectory.Settings.UpdateSettings() --- End of inner exception stack trace ---

 
New Post 11/27/2007 8:35 PM
User is offline Mike Horton
2960 posts
dnn.gmss.org
5th Ranked






Re: Clarification on functionality + Error message 

Wait, I may have given you the wrong fix. Do you only get this error when you go to click on update or is it there when you go into the Authentication page? If it's the former then I gave you the wrong answer.

What you need to do is add impersonation to your web.config. Look for a commented out section that starts <impersonate="true"/>. Uncomment that line only and change it so that it looks like the following: <impersonate="true" userName="domain\user" password="password" />. The user can be any generic domain user. This user account will also need to have the same rights to the DNN directory (and sub directories) that the Network Service/ASPNET user account has.

Give that a shot and let me know.

 
New Post 11/28/2007 2:57 AM
User is offline Kel Way
34 posts
10th Ranked


Re: Clarification on functionality + Error message 

Hi Mike,

Thanks again for your help.  I'm drowning a bit with all the various setting combinations.  As I recall from yesterday, this error occurred when entering the domain in the format: dc=domain,dc=org as documented in 33% of the posts on the matter (I see some LDAP, some domain.org too) -- domain.org worked.  I had tried the impersonation setting with positive results (all OKs on the provider configuration page).  Then, I started having other errors, which I remedied by affording access to the account I used in the impersonation string to the .NET framework folders (read to the root of the .net 2.x folder and write to the nested temp directory.  This seemed to work for awhile and then I had problems with the database (I think a user instance issue).  I recall one about the impersonated user needing a local profile (so I logged on my development XP machine with that user to create one).  That worked, then I saw another error maybe 4 minutes later about the database being in use or something.  I can tell you, every time I solved one problem, another would creep up.  I saw the one where  the user is logged off after a random  amount of time (as posted on your project blog -- but I thought fixed in 4.7).

I'm using the new 4.7 (no upgrade).  My goal is to create a company intranet with 100% AD account access.  I don't need mixed mode.  Is there an authoritative procedure for this setup on 4.7 anywhere you can point me to?

Some questions:

1. Should I keep the User Instance=true (web.config) database setup in place with impersonation?  If so, is it normal for me to need to log in as the impersonated user to create a profile?

2. Is the "random log off" bug you highlighted on your project blog still be present in 4.7?

3. Is there a way to gain access to the 1.00.1 (or whatever it was) build of the provider?

Mike, I really appreciate your help...  I know I probably ask questions that are already answered, but compiling info from all these different sources with conflicting information and various versions is, as I know you know, difficult.

Kel

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Authentication ...  Clarification on functionality + Error message
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com
BataviaSoft DotNetNuke Solutions
BataviaSoft offers custom DotNetNuke solutions especially for the European and the South East Asian market.
www.bataviasoft.com
Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP