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
f64a5f62
Commit
f64a5f62
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
debug info about filtered out ldap users
parent
05e55abb
No related branches found
No related tags found
2 merge requests
!450
fix on export to cell designer + ldap connector patches
,
!447
Resolve "Ldap user exists, but is filtered out"
Pipeline
#6716
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/LdapService.java
+6
-2
6 additions, 2 deletions
...c/main/java/lcsb/mapviewer/services/impl/LdapService.java
with
6 additions
and
2 deletions
service/src/main/java/lcsb/mapviewer/services/impl/LdapService.java
+
6
−
2
View file @
f64a5f62
...
...
@@ -146,11 +146,11 @@ public class LdapService implements ILdapService {
.
getConfigurationValue
(
ConfigurationElementType
.
LDAP_LAST_NAME_ATTRIBUTE
);
String
emailAttribute
=
configurationService
.
getConfigurationValue
(
ConfigurationElementType
.
LDAP_EMAIL_ATTRIBUTE
);
Filter
f1
=
createLoginFilter
(
login
);
Filter
loginFilter
=
createLoginFilter
(
login
);
Filter
f2
=
createObjectClassFilter
();
Filter
f3
=
createAttributeFilter
();
Filter
filter
=
Filter
.
createANDFilter
(
f1
,
f2
,
f3
);
Filter
filter
=
Filter
.
createANDFilter
(
loginFilter
,
f2
,
f3
);
SearchResult
searchResult
=
connection
.
search
(
baseDn
,
SearchScope
.
SUB
,
filter
);
for
(
SearchResultEntry
entry
:
searchResult
.
getSearchEntries
())
{
...
...
@@ -186,6 +186,10 @@ public class LdapService implements ILdapService {
return
result
;
}
searchResult
=
connection
.
search
(
baseDn
,
SearchScope
.
SUB
,
loginFilter
);
if
(
searchResult
.
getSearchEntries
().
size
()
>
0
)
{
logger
.
debug
(
"User '"
+
login
+
"' exists, but was filtered out [filter="
+
filter
.
toString
()
+
"]"
);
}
return
null
;
}
finally
{
connection
.
close
();
...
...
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