]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samdb: Add transaction id control
authorGary Lockyer <gary@catalyst.net.nz>
Sun, 15 Apr 2018 19:59:43 +0000 (07:59 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 10 May 2018 18:02:23 +0000 (20:02 +0200)
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/samdb.h
source4/libcli/ldap/ldap_controls.c
source4/setup/schema_samba4.ldif

index d2686af30f7a456767545f5910f9659a6b444eaa..65d22ea0a58c20e4b24feaf3a9ff44dcb3421ba5 100644 (file)
@@ -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;
index 7ecc9080cd1be417e6c6fc04ed42eda5c6d53d4c..716ca148308799526d2aefc548a7f624a2a2d1be 100644 (file)
@@ -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 }
 };
 
index 6aafc9e5f493623c20f1c4372a837d4346962293..5b26dc0bee5ecd8428970830f31f33f66481eaa5 100644 (file)
 #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