mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 15:37:19 +00:00
[Update] 重构 LDAP/AD 同步功能,添加缓存机制
This commit is contained in:
17
apps/settings/tasks/ldap.py
Normal file
17
apps/settings/tasks/ldap.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# coding: utf-8
|
||||
#
|
||||
|
||||
from celery import shared_task
|
||||
|
||||
from common.utils import get_logger
|
||||
from ..utils import LDAPSyncUtil
|
||||
|
||||
__all__ = ['sync_ldap_user_task']
|
||||
|
||||
|
||||
logger = get_logger(__file__)
|
||||
|
||||
|
||||
@shared_task
|
||||
def sync_ldap_user_task():
|
||||
LDAPSyncUtil().perform_sync()
|
Reference in New Issue
Block a user