Browse Source

some fixes

master
Mikhail Grebenkin 4 years ago
parent
commit
706e78f6d1
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      importer.py

+ 4
- 1
importer.py View File

@ -61,6 +61,7 @@ def main():
exit(0)
z_users = z_reader.users_make_zayavka(res)
# print len(z_users)
i = 0
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'])
@ -84,7 +85,9 @@ def main():
ad_user.disable()
for group in z_users[z_user]['memberOf']:
ad_user.add_in_group(group)
break
if i > 10:
break
i += 1
if __name__ == '__main__':


Loading…
Cancel
Save

Powered by TurnKey Linux.