1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Fixed look up user names on Windows Actor on lowercase

This commit is contained in:
Adolfo Gómez García 2018-01-10 12:10:53 +01:00
parent 5a13f52d8f
commit b4ba79cad2

View File

@ -187,7 +187,7 @@ class UDSActorSvc(win32serviceutil.ServiceFramework, CommonService):
resumeHandle = 0
while True:
users, _, resumeHandle = win32net.NetLocalGroupGetMembers(None, groupName, 1, resumeHandle, 32768)
if user in [u['name'] for u in users]:
if user.lower() in [u['name'].lower() for u in users]:
useraAlreadyInGroup = True
break
if resumeHandle == 0: