Merge pull request #10121 from jumpserver/pr@v2.28@fix_ldapuserimport_v2.28

fix: 修复 LDAP 导入用户时指定其他组织,还会导入到 Default 组织的问题
This commit is contained in:
老广
2023-04-03 17:09:58 +08:00
committed by GitHub

View File

@@ -4,6 +4,7 @@
from celery import shared_task
from django.conf import settings
from django.utils import timezone
from django.db import transaction
from users.notifications import PasswordExpirationReminderMsg
from ops.celery.utils import (
@@ -80,6 +81,7 @@ def check_user_expired_periodic():
@shared_task
@transaction.atomic
def import_ldap_user():
logger.info("Start import ldap user task")
util_server = LDAPServerUtil()