Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
a0f7f83f
Commit
a0f7f83f
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
ldap login is case insensitive, but in our system such logins are lowercased
parent
aff4665a
No related branches found
No related tags found
2 merge requests
!541
version 12.1.3 into master
,
!523
Resolve "LDAP connector problem with case insensitive logins"
Pipeline
#7844
passed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
service/src/main/java/lcsb/mapviewer/services/impl/UserService.java
+3
-2
3 additions, 2 deletions
...c/main/java/lcsb/mapviewer/services/impl/UserService.java
with
3 additions
and
2 deletions
service/src/main/java/lcsb/mapviewer/services/impl/UserService.java
+
3
−
2
View file @
a0f7f83f
...
@@ -616,8 +616,9 @@ public class UserService implements IUserService {
...
@@ -616,8 +616,9 @@ public class UserService implements IUserService {
try
{
try
{
List
<
String
>
ldapUserNames
=
getLdapService
().
getUsernames
();
List
<
String
>
ldapUserNames
=
getLdapService
().
getUsernames
();
for
(
String
string
:
ldapUserNames
)
{
for
(
String
string
:
ldapUserNames
)
{
if
(
result
.
keySet
().
contains
(
string
))
{
String
ldapLogin
=
string
.
toLowerCase
();
result
.
put
(
string
,
true
);
if
(
result
.
keySet
().
contains
(
ldapLogin
))
{
result
.
put
(
ldapLogin
,
true
);
}
}
}
}
}
catch
(
LDAPException
e
)
{
}
catch
(
LDAPException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment