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