mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4-drs: add defines for replication flags on attributes
This commit is contained in:
parent
3b7c668606
commit
547a6da58e
@ -180,3 +180,6 @@
|
||||
#define DS_DC_FUNCTION_2008 3
|
||||
#define DS_DC_FUNCTION_2008_R2 4
|
||||
|
||||
/* sa->systemFlags on attributes */
|
||||
#define DS_FLAG_ATTR_NOT_REPLICATED 0x00000001
|
||||
#define DS_FLAG_ATTR_IS_CONSTRUCTED 0x00000004
|
||||
|
@ -567,7 +567,7 @@ static int replmd_add(struct ldb_module *module, struct ldb_request *req)
|
||||
return LDB_ERR_NO_SUCH_ATTRIBUTE;
|
||||
}
|
||||
|
||||
if ((sa->systemFlags & 0x00000001) || (sa->systemFlags & 0x00000004)) {
|
||||
if ((sa->systemFlags & DS_FLAG_ATTR_NOT_REPLICATED) || (sa->systemFlags & DS_FLAG_ATTR_IS_CONSTRUCTED)) {
|
||||
/* if the attribute is not replicated (0x00000001)
|
||||
* or constructed (0x00000004) it has no metadata
|
||||
*/
|
||||
@ -689,10 +689,7 @@ static int replmd_update_rpmd_element(struct ldb_context *ldb,
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
|
||||
if ((a->systemFlags & 0x00000001) || (a->systemFlags & 0x00000004)) {
|
||||
/* if the attribute is not replicated (0x00000001)
|
||||
* or constructed (0x00000004) it has no metadata
|
||||
*/
|
||||
if ((a->systemFlags & DS_FLAG_ATTR_NOT_REPLICATED) || (a->systemFlags & DS_FLAG_ATTR_IS_CONSTRUCTED)) {
|
||||
return LDB_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user