Browse Source

добавил апдейты базы

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

+ 1
- 4
importer.py View File

@ -50,10 +50,7 @@ def main():
lp = samba.param.LoadParm()
lp.load(samba.param.default_path()) # или lp.load("/etc/samba/smb.conf")
sam = SamDB(lp=lp, session_info=system_session())
z_users, err = z_reader.users_make_zayavka(z_reader.mysql_reader(dbconn, sql), ad_groups)
if err:
print err
exit(0)
z_users = z_reader.users_make_zayavka(z_reader.mysql_reader(dbconn, sql), ad_groups)
print len(z_users)
for z_user in z_users:
print z_user


Loading…
Cancel
Save

Powered by TurnKey Linux.