|
|
@ -40,6 +40,7 @@ def main(): |
|
|
|
lp.load(samba.param.default_path()) # или lp.load("/etc/samba/smb.conf") |
|
|
|
sam = SamDB(lp=lp, session_info=system_session()) |
|
|
|
z_users = z_reader.users_make_zayavka() |
|
|
|
print len(z_users) |
|
|
|
for z_user in z_users: |
|
|
|
ad_user = UserAd(sam, base, domainName, z_users[z_user]['samAccountName'], z_users[z_user]['usrPass']) |
|
|
|
if z_users[z_user]['toRemove']: # удаляем, если такой есть |
|
|
|