Part of samba.net View In Hierarchy
Method | replicate_init | replicate_init(samdb, lp, drspipe) Setup for replicate_chunk calls. |
Method | __new__ | T.__new__(S, ...) -> a new object with type S, a subtype of T |
Method | finddc | finddc(flags=server_type, domain=None, address=None) Find a DC with the specified 'server_type' bits. The 'domain' and/or 'address' have to be used as additional search criteria. Returns the whole netlogon struct |
Method | change_password | change_password(newpassword) -> True |
Method | vampire | vampire(domain, target_dir=None) Vampire a domain. |
Method | delete_user | delete_user(username) Delete a user. |
Method | create_user | create_user(username) Create a new user. |
Method | join_member | join_member(domain_name, netbios_name, level) -> (join_password, domain_sid, domain_name) |
Method | export_keytab | export_keytab(keytab, name) |
Method | time | time(server_name) -> timestr Retrieve the remote time on a server |
Method | replicate_chunk | replicate_chunk(state, level, ctr, schema) Process replication for one chunk |
Method | set_password | set_password(account_name, domain_name, newpassword) -> True |
Change password for a user. You must supply credential with enough rights to do this.
Sample usage is: net.set_password(newpassword=<new_password>