Commit cc481a98 authored by Benjamin Fischer's avatar Benjamin Fischer

LdapExport: fixed startup sync

parent fcba682d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment