2018-11-16 09:08:15 +00:00
|
|
|
"""LDAP Settings"""
|
2019-10-11 11:53:48 +01:00
|
|
|
from celery.schedules import crontab
|
2018-11-11 12:41:48 +00:00
|
|
|
|
|
|
|
AUTHENTICATION_BACKENDS = [
|
2019-10-07 15:33:48 +01:00
|
|
|
'passbook.sources.ldap.auth.LDAPBackend',
|
2018-11-11 12:41:48 +00:00
|
|
|
]
|
2019-10-11 11:53:48 +01:00
|
|
|
|
|
|
|
CELERY_BEAT_SCHEDULE = {
|
|
|
|
'sync': {
|
|
|
|
'task': 'passbook.sources.ldap.tasks.sync',
|
|
|
|
'schedule': crontab(minute=0) # Run every hour
|
|
|
|
}
|
|
|
|
}
|