From: Gary Lockyer Date: Sun, 15 Apr 2018 19:59:43 +0000 (+1200) Subject: samdb: Add transaction id control X-Git-Tag: ldb-1.4.0~367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01fab30a9779c7f2bfd3016c9c482d956cde5198;p=thirdparty%2Fsamba.git samdb: Add transaction id control Signed-off-by: Gary Lockyer Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/samdb.h b/source4/dsdb/samdb/samdb.h index d2686af30f7..65d22ea0a58 100644 --- a/source4/dsdb/samdb/samdb.h +++ b/source4/dsdb/samdb/samdb.h @@ -204,6 +204,15 @@ struct dsdb_control_password_acl_validation { bool pwd_reset; }; +/* + * Used to pass the current transaction identifier from the audit_log + * module to group membership auditing module + */ +#define DSDB_CONTROL_TRANSACTION_IDENTIFIER_OID "1.3.6.1.4.1.7165.4.3.34" +struct dsdb_control_transaction_identifier { + struct GUID transaction_guid; +}; + #define DSDB_EXTENDED_REPLICATED_OBJECTS_OID "1.3.6.1.4.1.7165.4.4.1" struct dsdb_extended_replicated_object { struct ldb_message *msg; diff --git a/source4/libcli/ldap/ldap_controls.c b/source4/libcli/ldap/ldap_controls.c index 7ecc9080cd1..716ca148308 100644 --- a/source4/libcli/ldap/ldap_controls.c +++ b/source4/libcli/ldap/ldap_controls.c @@ -1272,6 +1272,7 @@ static const struct ldap_control_handler ldap_known_controls[] = { { DSDB_EXTENDED_ALLOCATE_RID_POOL, NULL, NULL }, { DSDB_CONTROL_NO_GLOBAL_CATALOG, NULL, NULL }, { DSDB_EXTENDED_SCHEMA_UPGRADE_IN_PROGRESS_OID, NULL, NULL }, + { DSDB_CONTROL_TRANSACTION_IDENTIFIER_OID, NULL, NULL}, { NULL, NULL, NULL } }; diff --git a/source4/setup/schema_samba4.ldif b/source4/setup/schema_samba4.ldif index 6aafc9e5f49..5b26dc0bee5 100644 --- a/source4/setup/schema_samba4.ldif +++ b/source4/setup/schema_samba4.ldif @@ -227,6 +227,7 @@ #Allocated: DSDB_CONTROL_FORCE_RODC_LOCAL_CHANGE 1.3.6.1.4.1.7165.4.3.31 #Allocated: DSDB_CONTROL_INVALID_NOT_IMPLEMENTED 1.3.6.1.4.1.7165.4.3.32 #Allocated: DSDB_CONTROL_PASSWORD_ACL_VALIDATION_OID 1.3.6.1.4.1.7165.4.3.33 +#Allocated: DSDB_CONTROL_TRANSACTION_IDENTIFIER_OID 1.3.6.1.4.1.7165.4.3.34 # Extended 1.3.6.1.4.1.7165.4.4.x