Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
595166be
Verified
Commit
595166be
authored
Oct 14, 2018
by
Peter Stanko
Browse files
Fixing the LDAP description getter
parent
33e6d2a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
portal/service/users.py
View file @
595166be
...
...
@@ -43,6 +43,8 @@ class UserLdapService:
log
.
debug
(
f
"[LDAP] User (
{
username
}
):
{
user_entity
}
"
)
if
not
user_entity
:
return
None
if
'description'
not
in
user_entity
.
entry_attributes
:
return
None
desc
=
user_entity
.
description
uco
=
self
.
_parse_uco_from_desc
(
desc
)
log
.
debug
(
f
"[LDAP] User's UCO (
{
username
}
):
{
uco
}
"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment