1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s4:dsdb: add dsdb_module_constrainted_update_uint32/64() wrapper functions

metze
This commit is contained in:
Stefan Metzmacher 2010-07-08 12:02:42 +02:00
parent 65ca5a3542
commit 217177a4df

View File

@ -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);
}