|
|
@ -144,9 +144,9 @@ def main(): |
|
|
|
sam = SamDB(lp=lp, session_info=system_session()) |
|
|
|
test_usr = UserAd(sam, base, domainName, 'tst', "secret34daD") |
|
|
|
print test_usr.memberOf |
|
|
|
err = test_usr.set_passwd() |
|
|
|
if err: |
|
|
|
print err |
|
|
|
print "Set disable error: ", test_usr.disable() |
|
|
|
print "Set enable error: ", test_usr.enable() |
|
|
|
print class="s2">"Set Password remove error: ", test_usr.remove() |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|