mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
[Feature] 添加同步 LDAP/AD 用户的定时任务3
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#
|
||||
|
||||
from celery import shared_task
|
||||
from django.conf import settings
|
||||
|
||||
from ops.celery.utils import create_or_update_celery_periodic_tasks
|
||||
from ops.celery.decorator import after_app_ready_start
|
||||
@@ -11,7 +12,6 @@ from .utils import (
|
||||
send_password_expiration_reminder_mail, send_user_expiration_reminder_mail
|
||||
)
|
||||
from settings.utils import LDAPUtil
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
logger = get_logger(__file__)
|
||||
|
@@ -72,6 +72,13 @@ REDIS_PORT: 6379
|
||||
# RADIUS_PORT: 1812
|
||||
# RADIUS_SECRET:
|
||||
|
||||
# LDAP/AD 设置定时同步参数
|
||||
# 启用/禁用
|
||||
# AUTH_LDAP_SYNC_IS_PERIODIC: True
|
||||
# 单位: 时
|
||||
# AUTH_LDAP_SYNC_INTERVAL: 12
|
||||
# Crontab 表达式
|
||||
# AUTH_LDAP_SYNC_CRONTAB: * 6 * * *
|
||||
|
||||
# OTP settings
|
||||
# OTP/MFA 配置
|
||||
|
Reference in New Issue
Block a user