]> git.sur5r.net Git - openldap/commitdiff
Reject slapadd -w if not supported (partial ITS#3979 fix)
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 31 Aug 2005 23:23:13 +0000 (23:23 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 31 Aug 2005 23:23:13 +0000 (23:23 +0000)
servers/slapd/slapadd.c

index e4190eac3b40f5e9809c91e6b2e358d767ad159e..23d3c0b2af7e9de1a39808d9a2445e90355e5b6d 100644 (file)
@@ -74,7 +74,11 @@ slapadd( int argc, char **argv )
 
        if( !be->be_entry_open ||
                !be->be_entry_close ||
-               !be->be_entry_put )
+               !be->be_entry_put ||
+               (update_ctxcsn &&
+                (!be->be_dn2id_get ||
+                 !be->be_id2entry_get ||
+                 !be->be_entry_modify)) )
        {
                fprintf( stderr, "%s: database doesn't support necessary operations.\n",
                        progname );