|
|
@ -60,9 +60,9 @@ def users_make_zayavka(users): |
|
|
|
memberof = ad_groups_1c |
|
|
|
elif str(i['Otdel']) == 'Bitrix': |
|
|
|
memberof = ad_groups_bitrix |
|
|
|
if str(i['XServ']) == '1': |
|
|
|
if i['XServ'] == 1: |
|
|
|
memberof.append(ad_group_xserv) |
|
|
|
if str(i['RDP']) == '1': |
|
|
|
if i['RDP'] == 1: |
|
|
|
memberof.append(ad_group_rdp) |
|
|
|
# собственно добавляем в мапу |
|
|
|
res[usrname] = {'id': str(i['ID']), |
|
|
|