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 ForumsAuthenticationAuthenticationADSIAuthentication Provider ProblemsADSIAuthentication Provider Problems
Previous
 
Next
New Post
10/14/2010 6:40 PM
 
DNN Version 5.05.xx
ADSIAuthentication Provider Version 5.02.xx

I've disabled the default Default Authentication provider. I go to the extension to edit the DNN_ActiveDirectoryAuthentication. I choose "Enabled" and "Synchronize Roles" and select "ADSIAuthentication Provider" and "Delegation". I enter I domain info, username and password and choose "Update Authentication Settings". When I do so the "Provider" and "Autentication" combo Boxes clear and I get the error:
 
"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.Settings.UpdateSettings() --- End of inner exception stack trace ---"

In the Event Viewer I see the following error:

"ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 5.5.1
PortalID: 0
PortalName: Name Of Portal
UserID: 3
UserName: DomainName\Username
ActiveTabID: 118
ActiveTabName: Extensions
RawURL: /Admin/Extensions/tabid/118/ctl/Edit/mid/569/PackageID/3/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://ServerName/Admin/Extensions/ta...
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: e09dd7f8-60e9-454c-adcc-a5d135c3b9fd
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Authentication.ActiveDirectory.Settings.UpdateSettings
StackTrace:
Message: 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.Settings.UpdateSettings() --- End of inner exception stack trace ---
Source:
Server Name: ServerName"

My users are not getting synced to the Active Directory. If I delete a user from the "User Accounts" page they are no longer able to log in. In the past, if I'd deleted a user but that user was still active in the Active Directory then they would get logged in (as would a first time user) but would only have the default Security Roles. We're using this DNN installation in an "Intranet" capacity. What can I do to get this to again sync the user roles with my Active Directory?
 
New Post
10/15/2010 12:06 AM
 
Have you tried using impersonation in your web.config? 99% of the time that fixes the error.
 
New Post
10/15/2010 1:34 PM
 
I tried changing the web.config from:

"<authentication mode="Forms">
      <forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies"/>
    </authentication>"

To:

"<identity impersonate="true"/>
    <authentication mode="Windows">
    </authentication> -->"

but that doesn't work either. Current users are still logged in but a deleted user can no longer log in.

Configuring DNN_ActiveDirectoryAuthentication still fails. Our site Login page used to give us two options for logging in - Windows Authentication using the format "DomainName/Username" or it would let me, as administrator,  create a user in DNN and they would log in using a name and password as assigned to them in DNN. Now they can only login using a name and password as assigned to them in DNN as the Login page no longer offers the Windows Signin option.
 
New Post
10/15/2010 6:43 PM
 
Kevin, go to http://www.dotnetnuke.com/Development/Forge/ProviderAuthentication/tabid/840/Default.aspx and scroll down to Other Project Files and download the user guide for your version of the provider. In there, memory says page 6, are instructions on setting up impersonation.
 
New Post
10/16/2010 1:04 AM
 
Thank you, Mike. Sorry to be such a pain. I followed the intructions and modified the web.config files as specified in the documentation. The account I used has full control over my DNN Installation. However, I know get the following error when attempting to access the site:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'AdvancedIntellect.Ssl' or one of its dependencies. Access is denied.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AdvancedIntellect.Ssl' could not be loaded.

=== Pre-bind state information ===
LOG: User = Unknown
LOG: DisplayName = AdvancedIntellect.Ssl
 (Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/
LOG: Initial PrivatePath = c:\inetpub\wwwroot\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: c:\inetpub\wwwroot\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framewor...
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Fram... ASP.NET Files/root/26676eb7/92c7e946/AdvancedIntellect.Ssl.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Fram... ASP.NET Files/root/26676eb7/92c7e946/AdvancedIntellect.Ssl/AdvancedIntellect.Ssl.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/Advanc....
LOG: Using application configuration file: c:\inetpub\wwwroot\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framewor...
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: AdvancedIntellect.Ssl, Version=2.0.0.5, Culture=neutral, PublicKeyToken=bc571e8da1c1f543
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.



Stack Trace:

[FileLoadException: Could not load file or assembly 'AdvancedIntellect.Ssl' or one of its dependencies. Access is denied.]

[FileLoadException: Could not load file or assembly 'AdvancedIntellect.Ssl, Version=2.0.0.5, Culture=neutral, PublicKeyToken=bc571e8da1c1f543' or one of its dependencies. Access is denied.]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'AdvancedIntellect.Ssl, Version=2.0.0.5, Culture=neutral, PublicKeyToken=bc571e8da1c1f543' or one of its dependencies. Access is denied.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8809442
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128
   System.Web.Compilation.BuildManager.CompileResourcesDirectory() +31
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +304

[HttpException (0x80004005): Could not load file or assembly 'AdvancedIntellect.Ssl, Version=2.0.0.5, Culture=neutral, PublicKeyToken=bc571e8da1c1f543' or one of its dependencies. Access is denied.]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly 'AdvancedIntellect.Ssl, Version=2.0.0.5, Culture=neutral, PublicKeyToken=bc571e8da1c1f543' or one of its dependencies. Access is denied.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890751
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationADSIAuthentication Provider ProblemsADSIAuthentication Provider Problems


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