Browse Source

some fixes

master
Mikhail Grebenkin 4 years ago
parent
commit
32685ac3f9
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      importer.py
  2. +0
    -1
      zayavka_reader.py

+ 1
- 1
importer.py View File

@ -60,7 +60,7 @@ def main():
print err
exit(0)
z_users = z_reader.users_make_zayavka(res)
print len(z_users)
# print len(z_users)
for z_user in z_users:
print z_user, z_users[z_user]['memberOf']
ad_user = UserAd(sam, base, domainName, z_users[z_user]['samAccountName'], z_users[z_user]['usrPass'])


+ 0
- 1
zayavka_reader.py View File

@ -63,7 +63,6 @@ def users_make_zayavka(users):
print(i)
memberof.append(ad_group_xserv)
if str(i['RDP']) == '1':
print(i)
memberof.append(ad_group_rdp)
# собственно добавляем в мапу
res[usrname] = {'id': str(i['ID']),


Loading…
Cancel
Save

Powered by TurnKey Linux.