From: Hallvard Furuseth Date: Wed, 31 Aug 2005 23:23:13 +0000 (+0000) Subject: Reject slapadd -w if not supported (partial ITS#3979 fix) X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~519 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4faa77f440af51b4701b377299a0803872a4099d;p=openldap Reject slapadd -w if not supported (partial ITS#3979 fix) --- diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c index e4190eac3b..23d3c0b2af 100644 --- a/servers/slapd/slapadd.c +++ b/servers/slapd/slapadd.c @@ -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 );