-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Allow to find local users by their email address #5384
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
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rullzer, @schiessle and @icewind1991 to be potential reviewers. |
|
It looks like two things are missing:
|
|
Those two things should already be the case, did you test them? |
|
I tested it now with a user who where email address === login name. I think that's quite common on some LDAP setups and the reason why we didn't searched the system address book. Setup:
Now I typed "user@server": Since there is no exact match this seems to be fine. Then after I completed the email address it looks like that: Now we have a exact match and the result is a bit confusing to me. We have two options but what are the differences? I assume that |
|
Ah okay, yeah I didn't think about name === email, will have a look |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
Done and added a test |
Codecov Report
@@ Coverage Diff @@
## master #5384 +/- ##
============================================
+ Coverage 54.14% 54.15% +<.01%
- Complexity 22312 22323 +11
============================================
Files 1381 1380 -1
Lines 85449 85497 +48
Branches 1325 1325
============================================
+ Hits 46267 46298 +31
- Misses 39182 39199 +17
|
schiessle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good now!
MorrisJobke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Ping @nickvergessen for the backport |
Allow to find local users by their email address Signed-off-by: Joas Schilling <coding@schilljs.com> Make sure to only add system users once Signed-off-by: Joas Schilling <coding@schilljs.com> Add unit test Signed-off-by: Joas Schilling <coding@schilljs.com>
|
I backported it quickly → #5428 |




I guess tests may fail, will adjust them then later.