Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
135
noc
Commits
39bf90d0
Commit
39bf90d0
authored
Mar 16, 2020
by
MaksimSmile13
Browse files
Update ldap.py
parent
1b375f80
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/login/backends/ldap.py
View file @
39bf90d0
...
...
@@ -182,7 +182,7 @@ class LdapBackend(BaseAuthBackend):
user_search_dn
=
ldap_domain
.
get_user_search_dn
()
self
.
logger
.
debug
(
"User search from %s: %s"
,
user_search_dn
,
usf
)
connection
.
search
(
search_dn
,
usf
,
ldap3
.
SUBTREE
,
attributes
=
ldap_domain
.
get_user_search_attributes
()
user_
search_dn
,
usf
,
ldap3
.
SUBTREE
,
attributes
=
ldap_domain
.
get_user_search_attributes
()
)
if
not
connection
.
entries
:
self
.
logger
.
info
(
"Cannot find user %s"
,
user
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment