]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/txn.c
Disallow pre/post reads in transactions (haven't yet specified
[openldap] / servers / slapd / txn.c
index f8fb65785d1f1017e594d0ca947de46177cf59a2..03cc7e337a675e15eaca82c42713d146c1c530d1 100644 (file)
@@ -99,6 +99,15 @@ int txn_spec_ctrl(
                return LDAP_X_TXN_ID_INVALID;
        }
 
+       if ( op->o_preread ) { /* temporary limitation */
+               rs->sr_text = "cannot perform pre-read in transaction";
+               return LDAP_UNWILLING_TO_PERFORM;
+       } 
+       if ( op->o_postread ) { /* temporary limitation */
+               rs->sr_text = "cannot perform post-read in transaction";
+               return LDAP_UNWILLING_TO_PERFORM;
+       }
+
        op->o_txnSpec = SLAP_CONTROL_CRITICAL;
        return LDAP_SUCCESS;
 }