From 9214ee4a10c27741b3f1672ed4b97ed06a31b9fe Mon Sep 17 00:00:00 2001 From: Mikhail Grebenkin Date: Mon, 19 Nov 2018 20:54:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F,=20=D1=82?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=B8=D1=80=D1=83=D1=8E.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UserAd_class.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UserAd_class.py b/UserAd_class.py index b23e93f..891a2cf 100644 --- a/UserAd_class.py +++ b/UserAd_class.py @@ -9,6 +9,7 @@ from samba.auth import system_session import samba.param # import base64 # import binascii +import time base = "CN=Users,DC=techgrow,DC=local" # можно не заморачиваться с ОУ и тогда base = "CN=Users,DC=myDom,DC=lan" domainName = 'techgrow.local' @@ -147,7 +148,9 @@ def main(): test_usr = UserAd(sam, base, domainName, 'tst', "secret34daD") print test_usr.memberOf print "Set disable error: ", test_usr.disable() + time.sleep(1) print "Set enable error: ", test_usr.enable() + time.sleep(1) print "Set Password remove error: ", test_usr.remove()