mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:dsdb: add dsdb_msg_constrainted_update_uint32/64() wrapper functions
metze
This commit is contained in:
parent
1d6f321a91
commit
65ca5a3542
@ -995,6 +995,17 @@ int dsdb_msg_constrainted_update_int32(struct ldb_module *module,
|
||||
return LDB_SUCCESS;
|
||||
}
|
||||
|
||||
int dsdb_msg_constrainted_update_uint32(struct ldb_module *module,
|
||||
struct ldb_message *msg,
|
||||
const char *attr,
|
||||
const uint32_t *old_val,
|
||||
const uint32_t *new_val)
|
||||
{
|
||||
return dsdb_msg_constrainted_update_int32(module, msg, attr,
|
||||
(const int32_t *)old_val,
|
||||
(const int32_t *)new_val);
|
||||
}
|
||||
|
||||
int dsdb_msg_constrainted_update_int64(struct ldb_module *module,
|
||||
struct ldb_message *msg,
|
||||
const char *attr,
|
||||
@ -1043,6 +1054,17 @@ int dsdb_msg_constrainted_update_int64(struct ldb_module *module,
|
||||
return LDB_SUCCESS;
|
||||
}
|
||||
|
||||
int dsdb_msg_constrainted_update_uint64(struct ldb_module *module,
|
||||
struct ldb_message *msg,
|
||||
const char *attr,
|
||||
const uint64_t *old_val,
|
||||
const uint64_t *new_val)
|
||||
{
|
||||
return dsdb_msg_constrainted_update_int64(module, msg, attr,
|
||||
(const int64_t *)old_val,
|
||||
(const int64_t *)new_val);
|
||||
}
|
||||
|
||||
/*
|
||||
update an int32 attribute safely via a constrained delete/add
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user