Browse Source

дебаг

master
Mikhail Grebenkin 6 years ago
parent
commit
c56f330328
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      importer.py
  2. +2
    -1
      zayavka_reader.py

+ 1
- 1
importer.py View File

@ -60,7 +60,7 @@ def main():
z_users = z_reader.users_make_zayavka(res)
print len(z_users)
for z_user in z_users:
print z_user
print z_user, z_users[z_user]['memberOf']
ad_user = UserAd(sam, base, domainName, z_users[z_user]['samAccountName'], z_users[z_user]['usrPass'])
if z_users[z_user]['toRemove']: # удаляем, если такой есть
if ad_user.exists:


+ 2
- 1
zayavka_reader.py View File

@ -74,7 +74,8 @@ def main():
if not err:
users = users_make_zayavka(data)
for user in users:
print user, users[user]
if '1' in users[user]['groupSet']:
print user, users[user]
else:
print err


Loading…
Cancel
Save

Powered by TurnKey Linux.