mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-08 10:49:08 +00:00
feat: 修改LDAP导入组织问题 (#8111)
Signed-off-by: Jiangjie.Bai <bugatti_it@163.com> Co-authored-by: BaiJiangJie <bugatti_it@163.com>
This commit is contained in:
@@ -376,7 +376,9 @@ class LDAPImportUtil(object):
|
||||
except Exception as e:
|
||||
errors.append({user['username']: str(e)})
|
||||
logger.error(e)
|
||||
if org and org.is_root():
|
||||
if not org:
|
||||
return
|
||||
if org.is_root():
|
||||
return
|
||||
for obj in objs:
|
||||
org.add_member(obj)
|
||||
|
Reference in New Issue
Block a user