You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users cannot log in via Azure AD when Reset Password is disabled in web config file.
This happens on new install of DNN 9.13.2
Steps to reproduce?
Configure Azure AD
Verify user can sign in using Azure provider
Set enablePasswordReset="false" in web config file
Verify user unable to sign in using Azure provider
Current Behavior
After user successfully authenticates with Azure credentials they get redirected to Login page with the following message:
An email with your details has been sent to the Site Administrator for verification. You will be notified when your registration has been approved. In the meantime you can continue to browse this site.
Expected Behavior
After user successfully authenticates with Azure credentials they get redirected to Login page and get logged in.
Relevant log output
2025-01-29 06:55:05.656+00:00 [WebSvr01][D:2][T:10][ERROR] DotNetNuke.Authentication.Azure.Components.AadController - Error while login in: This provider is not configured to allow password resets. To enable password reset, set enablePasswordReset to "true"in the configuration file.
2025-01-29 06:55:05.671+00:00 [WebSvr01][D:2][T:10][ERROR] DotNetNuke.Authentication.Azure.Components.AzureClient - Error validating token
System.ArgumentNullException: Value cannot be null.
Parameter name: value
at System.Web.Caching.CacheEntry..ctor(String key, Object value, CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Boolean isPublic, CacheInternal cache)
at System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String key, Object value, CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback, Boolean replace)
at System.Web.Caching.AspNetCache.Insert(String key, Object item, CacheInsertOptions options)
at System.Web.Caching.Cache.Insert(String key, Object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback)
at DotNetNuke.Services.Cache.FBCachingProvider.Insert(String cacheKey, Object itemToCache, DNNCacheDependency dependency, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback)
at DotNetNuke.Services.Cache.CachingProvider.Insert(String cacheKey, Object itemToCache, DNNCacheDependency dependency, DateTime absoluteExpiration, TimeSpan slidingExpiration)
at DotNetNuke.Authentication.Azure.Components.AadController.ValidateAuthorizationValue(String authorization)
at DotNetNuke.Authentication.Azure.Components.AzureClient.LoadTokenInternal(String token, Boolean verifyToken)
2025-01-29 06:56:21.037+00:00 [WebSvr01][D:2][T:10][ERROR] DotNetNuke.Authentication.Azure.Components.AadController - Error while login in: This provider is not configured to allow password resets. To enable password reset, set enablePasswordReset to "true"in the configuration file.
2025-01-29 06:56:21.037+00:00 [WebSvr01][D:2][T:10][ERROR] DotNetNuke.Authentication.Azure.Components.AzureClient - Error validating token
System.ArgumentNullException: Value cannot be null.
Parameter name: value
at System.Web.Caching.CacheEntry..ctor(String key, Object value, CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Boolean isPublic, CacheInternal cache)
at System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String key, Object value, CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback, Boolean replace)
at System.Web.Caching.AspNetCache.Insert(String key, Object item, CacheInsertOptions options)
at System.Web.Caching.Cache.Insert(String key, Object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback)
at DotNetNuke.Services.Cache.FBCachingProvider.Insert(String cacheKey, Object itemToCache, DNNCacheDependency dependency, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback)
at DotNetNuke.Services.Cache.CachingProvider.Insert(String cacheKey, Object itemToCache, DNNCacheDependency dependency, DateTime absoluteExpiration, TimeSpan slidingExpiration)
at DotNetNuke.Authentication.Azure.Components.AadController.ValidateAuthorizationValue(String authorization)
at DotNetNuke.Authentication.Azure.Components.AzureClient.LoadTokenInternal(String token, Boolean verifyToken)
2025-01-29 06:59:15.929+00:00 [WebSvr01][D:2][T:24][ERROR] DotNetNuke.Data.PetaPoco.PetaPocoHelper - [3] Error executing SQL: DECLARE @OS VARCHAR(1000)
EXECUTE xp_regread 'HKEY_LOCAL_MACHINE', 'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName', @OS OUTPUT
SELECT 1
xp_regread() returned error 5, 'Access is denied.'
2025-01-29 06:59:15.929+00:00 [WebSvr01][D:2][T:24][ERROR] DotNetNuke.Data.SqlDataProvider - System.Data.SqlClient.SqlException (0x80131904): xp_regread() returned error 5, 'Access is denied.'
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at DotNetNuke.Data.PetaPoco.PetaPocoExt.ExecuteReader(Database database, String sql, Object[] args) at DotNetNuke.Data.PetaPoco.PetaPocoHelper.ExecuteReader(String connectionString, CommandType type, Int32 timeoutSec, String sql, Object[] args) at DotNetNuke.Data.SqlDataProvider.ExecuteSQLInternal(String connectionString, String sql, Int32 timeoutSec, String& errorMessage)ClientConnectionId:9b4cdcd0-6694-4381-a7c3-2903271c4ca5Error Number:22001,State:1,Class:16
Anything else?
No response
Affected Versions
9.13.6 (latest release)
What browsers are you seeing the problem on?
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
What happened?
Users cannot log in via Azure AD when Reset Password is disabled in web config file.
This happens on new install of DNN 9.13.2
Steps to reproduce?
Current Behavior
After user successfully authenticates with Azure credentials they get redirected to Login page with the following message:
An email with your details has been sent to the Site Administrator for verification. You will be notified when your registration has been approved. In the meantime you can continue to browse this site.
Expected Behavior
After user successfully authenticates with Azure credentials they get redirected to Login page and get logged in.
Relevant log output
Anything else?
No response
Affected Versions
9.13.6 (latest release)
What browsers are you seeing the problem on?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: