Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
3pia
VISPA
VISPA web
Commits
cc481a98
Commit
cc481a98
authored
Nov 29, 2019
by
Benjamin Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LdapExport: fixed startup sync
parent
fcba682d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vispa/extensions/ldap_export/__init__.py
vispa/extensions/ldap_export/__init__.py
+3
-3
No files found.
vispa/extensions/ldap_export/__init__.py
View file @
cc481a98
...
...
@@ -193,9 +193,9 @@ class LDAPExportExtension(AbstractExtension):
session
=
scoped_session
(
sessionmaker
(
autoflush
=
True
,
autocommit
=
False
))
session
.
configure
(
bind
=
self
.
server
.
_engine
)
if
vispa
.
config
(
"ldap-export"
,
"delete_unknown"
,
False
):
self
.
delete_unknown
(
session
)
self
.
sync_all_users
(
session
)
self
.
sync_all_groups
(
session
)
self
.
ldapexport
.
delete_unknown
(
session
)
self
.
ldapexport
.
sync_all_users
(
session
)
self
.
ldapexport
.
sync_all_groups
(
session
)
vispa
.
register_callback
(
"user.activate"
,
self
.
on_activate
)
vispa
.
register_callback
(
"user.set_password"
,
self
.
on_set_password
)
...
...
Write
Preview
Markdown
is supported
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