Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot login - error when creating DNN user? #75

Open
roman-yagodin opened this issue Nov 16, 2020 · 3 comments
Open

Cannot login - error when creating DNN user? #75

roman-yagodin opened this issue Nov 16, 2020 · 3 comments

Comments

@roman-yagodin
Copy link

roman-yagodin commented Nov 16, 2020

Describe the bug

It seems like AD provider successfully connects to AD, gets user information, but fails to create user in DNN. My wild guess - due to random password doesn't match the required parameters?

Software Versions

  • DNN: 08.00.04
  • Module: 07.00.00

To Reproduce

Steps to reproduce the behavior:

  1. Install and configure the AD provider
  2. Enable it via site extensions
  3. Try to login with existing AD account credentials

Error log

Log entries with Debug mode enabled:

  1. Description:@getuser:Getting ready to getUserEntryByName. LoggedOnUserName: DOMAIN\test_user
  2. Description:@getuser:Successfully retrieved user entry by name. Username: DOMAIN\test_user ...
  3. Login Failure
  4. Description:@Createuser:Dumping create status: CreateStatus: InvalidPassword
  5. Description:@getuser:Successfully filled objAuthUser object. objAuthUser object JSON: ...

Additional context

From web.config:

<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="SiteSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
requiresUniqueEmail="false"
passwordFormat="Hashed"
applicationName="DotNetNuke"
description="Stores and retrieves membership data from the local Microsoft SQL Server database" />
@roman-yagodin roman-yagodin changed the title Cannot login - error when creating user Cannot login - error when creating user? Nov 16, 2020
@roman-yagodin roman-yagodin changed the title Cannot login - error when creating user? Cannot login - error when creating DNN user? Nov 16, 2020
@sawest
Copy link
Collaborator

sawest commented Jan 26, 2021

I have confirmed that the random password created in this module is all numeric. Requiring non alpha characters will trigger an issue. Random password code should be refactored to add upper and lower case letters in case these are required.

@roman-yagodin
Copy link
Author

Can the DNN UserContoller.GeneratePassword() be used for this?

@sawest
Copy link
Collaborator

sawest commented Jan 27, 2021

That is a great idea. I will look and see if it can be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants