This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-11-16 09:08:15 +00:00
|
|
|
"""LDAP Settings"""
|
2019-10-11 10:53:48 +00:00
|
|
|
from celery.schedules import crontab
|
2018-11-11 12:41:48 +00:00
|
|
|
|
|
|
|
AUTHENTICATION_BACKENDS = [
|
2019-12-31 11:51:16 +00:00
|
|
|
"passbook.sources.ldap.auth.LDAPBackend",
|
2018-11-11 12:41:48 +00:00
|
|
|
]
|
2019-10-11 10:53:48 +00:00
|
|
|
|
|
|
|
CELERY_BEAT_SCHEDULE = {
|
2020-07-07 15:04:07 +00:00
|
|
|
"sources_ldap_sync": {
|
2020-10-16 12:17:47 +00:00
|
|
|
"task": "passbook.sources.ldap.tasks.ldap_sync_all",
|
2019-12-31 11:51:16 +00:00
|
|
|
"schedule": crontab(minute=0), # Run every hour
|
2020-09-02 22:04:12 +00:00
|
|
|
"options": {"queue": "passbook_scheduled"},
|
2019-10-11 10:53:48 +00:00
|
|
|
}
|
|
|
|
}
|