1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-18 00:59:12 +03:00

s4-python: More cleanups.

This commit is contained in:
Jelmer Vernooij
2010-04-08 21:01:17 +02:00
parent a35d876537
commit dd4ef4e106
9 changed files with 37 additions and 29 deletions

View File

@ -150,7 +150,8 @@ pwdLastSet: 0
except:
self.transaction_cancel()
raise
self.transaction_commit()
else:
self.transaction_commit()
def setpassword(self, filter, password, force_change_at_next_login=False):
"""Sets the password for a user
@ -188,7 +189,8 @@ userPassword:: %s
except:
self.transaction_cancel()
raise
self.transaction_commit()
else:
self.transaction_commit()
def setexpiry(self, filter, expiry_seconds, no_expiry_req=False):
"""Sets the account expiry for a user
@ -227,7 +229,8 @@ accountExpires: %u
except:
self.transaction_cancel()
raise
self.transaction_commit()
else:
self.transaction_commit()
def set_domain_sid(self, sid):
"""Change the domain SID used by this LDB.