From fa1a167f8e6f7851183b979aab18d23cf9d3d5ca Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Fri, 27 Sep 2019 18:30:13 +0800 Subject: [PATCH] =?UTF-8?q?[Feature]=20=E6=B7=BB=E5=8A=A0=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=20LDAP/AD=20=E7=94=A8=E6=88=B7=E7=9A=84=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/tasks.py | 2 +- config_example.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/users/tasks.py b/apps/users/tasks.py index 16f208fbd..e0051e939 100644 --- a/apps/users/tasks.py +++ b/apps/users/tasks.py @@ -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__) diff --git a/config_example.yml b/config_example.yml index 2008ff917..911e7b8ee 100644 --- a/config_example.yml +++ b/config_example.yml @@ -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 配置