diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-07-14 08:00:09 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-07-16 09:23:35 +1000 |
commit | ba58edd0bc2d77c6ed1b6a76f33787da9031db5b (patch) | |
tree | 5f01514c25861f9250755c09b414038818df27fb /source4/scripting/python/samba/samdb.py | |
parent | d6c44a704e9a138dba8398f45e9af2601826f659 (diff) | |
download | samba-ba58edd0bc2d77c6ed1b6a76f33787da9031db5b.tar.gz samba-ba58edd0bc2d77c6ed1b6a76f33787da9031db5b.tar.xz samba-ba58edd0bc2d77c6ed1b6a76f33787da9031db5b.zip |
Add a way to set an opaque integer onto a samdb
This will allow us to set some more flags into ldb during the provision.
Diffstat (limited to 'source4/scripting/python/samba/samdb.py')
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index bc76cd3c5f..6cb2469846 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -231,6 +231,14 @@ userPassword:: %s """ glue.dsdb_set_ntds_invocation_id(self, invocation_id) + def set_opaque_integer(self, name, value): + """Set an integer as an opaque (a flag or other value) value on the database + + :param name: The name for the opaque value + :param value: The integer value + """ + glue.dsdb_set_opaque_integer(self, name, value) + def setexpiry(self, user, expiry_seconds, noexpiry): """Set the account expiry for a user |