summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-07-08 12:02:42 +0200
committerStefan Metzmacher <metze@samba.org>2010-07-09 09:27:12 +0200
commit217177a4df55439cec1d2563ab1af8fbdfe4a991 (patch)
tree81c5463bb05c9ca098a557ceec2b075968972a2b /source4/dsdb/samdb/ldb_modules
parent65ca5a3542cb1ccb07da0831c61c043f4632ffa8 (diff)
downloadsamba-217177a4df55439cec1d2563ab1af8fbdfe4a991.tar.gz
samba-217177a4df55439cec1d2563ab1af8fbdfe4a991.tar.bz2
samba-217177a4df55439cec1d2563ab1af8fbdfe4a991.zip
s4:dsdb: add dsdb_module_constrainted_update_uint32/64() wrapper functions
metze
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c
index 1d583f9cb4..f7218d4d88 100644
--- a/source4/dsdb/samdb/ldb_modules/util.c
+++ b/source4/dsdb/samdb/ldb_modules/util.c
@@ -1094,6 +1094,17 @@ int dsdb_module_constrainted_update_int32(struct ldb_module *module,
return ret;
}
+int dsdb_module_constrainted_update_uint32(struct ldb_module *module,
+ struct ldb_dn *dn,
+ const char *attr,
+ const uint32_t *old_val,
+ const uint32_t *new_val)
+{
+ return dsdb_module_constrainted_update_int32(module, dn, attr,
+ (const int32_t *)old_val,
+ (const int32_t *)new_val);
+}
+
/*
update an int64 attribute safely via a constrained delete/add
*/
@@ -1122,3 +1133,14 @@ int dsdb_module_constrainted_update_int64(struct ldb_module *module,
talloc_free(msg);
return ret;
}
+
+int dsdb_module_constrainted_update_uint64(struct ldb_module *module,
+ struct ldb_dn *dn,
+ const char *attr,
+ const uint64_t *old_val,
+ const uint64_t *new_val)
+{
+ return dsdb_module_constrainted_update_int64(module, dn, attr,
+ (const int64_t *)old_val,
+ (const int64_t *)new_val);
+}