-
Notifications
You must be signed in to change notification settings - Fork 224
Can not login with UPN. #220
Comments
The identity is searched by default over the "cn". If you want to find the identity through the UPN, you can change line 26 in File PasswordChangeProvider.cs as followed. public ApiErrorItem PerformPasswordChange(string username, string currentPassword, string newPassword)
{
// perform the password change
try
{
using (var principalContext = AcquirePrincipalContext())
{
// ########## Replace this line ... ##################
// var userPrincipal = UserPrincipal.FindByIdentity(principalContext, username);
// ####### with this line !!! Set ItenditityType to: IdentityType.UserPrincipalName #####
var userPrincipal = UserPrincipal.FindByIdentity(principalContext, IdentityType.UserPrincipalName, username);
..... |
Thanks, where is that file located? because I'm unable to locate it. |
But that is the source code right? Because that file is not present on my passcore installation. |
Yes it is. |
I like your idea. |
Thanks for your answer. Yes that would be nice! |
@svhsvh you can download the current master code or wait for the release probably by Friday. |
Thanks! I will wait until the release. |
Just a quick question, where can I find it when this will be released? |
Sorry guys, I've been busy but probably today I'll release it. |
@svhsvh I created a published version from my current branch. Including:
Let me know if it's working for you. I'll wait feedback before to publish a release. |
This version works with UPN. The only version if found where this works ouf of the box is v3.1 |
Are you sure about that? Because the Change Password Provider from 3.1 is pretty much the same code as this version. The only important change is the ability to change the DC attribute to search the user. There are no changes in how the password is changed. |
Thanks, I will test it out and I will let it know you soon. |
Do you have a log file? |
Unfortunately not. If I unpack a fresh copy of PassCore34 (stable release) and point the Physical Path in IIS to that directory it works. If I unpack a fresh copy of PassCore35.zip that you posted here and point the Physical Path in IIS to that directory it returns me the 502.5 error. |
Hi, I did some test to be really sure. Results below. Thread that triggered me to try 3.1: #216 Test setup:AD functional level: 2016 Password-Policy:Complexity: Enabled Test-User:Default domain user with "User must change password at next logon" enabled. ######################
|
@svhsvh Passcore350 has a different setting file, did you check that? |
@MAP74 wow! thank you for the information. Let me review again the changes between 320 and 330. |
One little (maybe important) change is, that the UPN will be used to check the old password.
Maybe the UPN is not set in the DC? |
I noticed a changed introduced after 3.2.0 to set the last password property, and I guess it may could affect. The following release includes a new setting named For more information about the Last Password check, see issue #21. |
@geoperez The new 3.5 you provided does the trick. Changing passwords with option "User must change password at next logon" enabled is working again, Log
Thank you. QuestionThe PasswordMeter seems to use the classic complexity requirements to measure if your password is a strong one.
Is this something where the password meter can be improved? |
That's cool! Regarding the PasswordMeter, you are right, the current implementation is not right. But I'll target that issue in the following version. I want to release 3.5.0 now to fix the issues between 3.2.0 and 3.4.0. Can you submit this like a new issue? |
PassCore Server
Describe the bug
Our users are used to login with their UPN, but they are not able to login with their UPN. If they try passcore returns: "Please enter a valid username", like you can see in the image below:
Screenshots
I hope someone knows the solution to our problem or is able to help us, thanks in advance.
The text was updated successfully, but these errors were encountered: