|
|
@ -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 |
|
|
|