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

fix: 修复 LDAP 导入用户时指定其他组织,还会导入到 Default 组织的问题
pull/10275/head
老广 2023-04-03 17:09:58 +08:00 committed by GitHub
commit e90d8c8561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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()