Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
2133d2cf
Commit
2133d2cf
authored
May 15, 2017
by
Robin Sonnabend
Browse files
Merge branch 'master' of git.fsmpi.rwth-aachen.de:protokollsystem/proto3
parents
fff182e6
3aec2b7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
auth.py
View file @
2133d2cf
...
...
@@ -65,6 +65,7 @@ class LdapManager:
connection
=
ldap3
.
Connection
(
self
.
server
)
obj_def
=
ldap3
.
ObjectDef
(
"posixgroup"
,
connection
)
group_reader
=
ldap3
.
Reader
(
connection
,
obj_def
,
self
.
group_dn
)
username
=
username
.
lower
()
for
group
in
group_reader
.
search
():
members
=
group
.
memberUid
.
value
if
members
is
not
None
and
username
in
members
:
...
...
server.py
View file @
2133d2cf
...
...
@@ -326,7 +326,7 @@ def new_default_top(protocoltype):
for
protocol
in
protocoltype
.
protocols
:
if
not
protocol
.
done
:
localtop
=
LocalTOP
(
protocol_id
=
protocol
.
id
,
defaulttop_id
=
defaultop
.
id
,
description
=
""
)
defaulttop_id
=
default
t
op
.
id
,
description
=
""
)
db
.
session
.
add
(
localtop
)
db
.
session
.
commit
()
flash
(
"Der Standard-TOP {} wurde für dem Protokolltyp {} hinzugefügt."
.
format
(
defaulttop
.
name
,
protocoltype
.
name
),
"alert-success"
)
...
...
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