s.n.Net : class documentation

Part of samba.net View In Hierarchy

No class docstring
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
def replicate_init():
replicate_init(samdb, lp, drspipe) Setup for replicate_chunk calls.
def __new__():
T.__new__(S, ...) -> a new object with type S, a subtype of T
def 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
def change_password():
change_password(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>

def vampire():
vampire(domain, target_dir=None) Vampire a domain.
def delete_user():
delete_user(username) Delete a user.
def create_user():
create_user(username) Create a new user.
def join_member():
join_member(domain_name, netbios_name, level) -> (join_password, domain_sid, domain_name)

Join the domain with the specified name.

def export_keytab():
export_keytab(keytab, name)

Export the DC keytab to a keytab file.

def time():
time(server_name) -> timestr Retrieve the remote time on a server
def replicate_chunk():
replicate_chunk(state, level, ctr, schema) Process replication for one chunk
def set_password():
set_password(account_name, domain_name, newpassword) -> True

Set password for a user. You must supply credential with enough rights to do this.

Sample usage is:
net.set_password(account_name=<account_name>,
                domain_name=domain_name,
                newpassword=new_pass)
API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.