mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
handle usernames only when GC_DOMAIN not set
This commit is contained in:
@@ -9759,12 +9759,11 @@ def getUsersToModify(entity_type=None,
|
|||||||
entity = sys.argv[2]
|
entity = sys.argv[2]
|
||||||
# avoid building cd for user/users since it
|
# avoid building cd for user/users since it
|
||||||
# unnnecesarily pushes user through admin auth
|
# unnnecesarily pushes user through admin auth
|
||||||
if entity_type not in ['user', 'users']:
|
if entity_type not in ['user', 'users'] or \
|
||||||
|
('@' not in entity and not GC_Values[GC_DOMAIN]):
|
||||||
cd = buildGAPIObject('directory')
|
cd = buildGAPIObject('directory')
|
||||||
if entity_type == 'user':
|
if entity_type == 'user':
|
||||||
users = [
|
users = [entity]
|
||||||
entity,
|
|
||||||
]
|
|
||||||
elif entity_type == 'users':
|
elif entity_type == 'users':
|
||||||
users = entity.replace(',', ' ').split()
|
users = entity.replace(',', ' ').split()
|
||||||
elif entity_type in ['group', 'group_ns', 'group_susp', 'group_inde']:
|
elif entity_type in ['group', 'group_ns', 'group_susp', 'group_inde']:
|
||||||
|
|||||||
Reference in New Issue
Block a user