def _create_user(self, username, password, name, surname): SambaAD().createUser(username, password, name, surname)
def _create_group(self, name, description=None): SambaAD().createGroup(name, description)
def deleteSambaUser(username): return SambaAD().deleteUser(username)
def userHasSambaEnabled(username): return username and SambaAD().isUserEnabled(username)
def enableSambaUser(username): return SambaAD().enableUser(username)
def disableSambaUser(username): return SambaAD().disableUser(username)
def updateSambaUserPassword(username, password): if isinstance(password, xmlrpclib.Binary): password = str(password) return SambaAD().updateUserPassword(username, password)
def createSambaUser(username, password, name, surname): return SambaAD().createUser(username, password, name, surname)
def userHasSambaAccount(username): return username and SambaAD().existsUser(username)
def editMachine(name, description, enabled): return SambaAD().editMachine(name, description, enabled)
def getMachine(name): return SambaAD().getMachine(name)
def deleteMachine(name): return SambaAD().deleteMachine(name)
def listDomainMembers(): return SambaAD().listDomainMembers()