From 4faa77f440af51b4701b377299a0803872a4099d Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 31 Aug 2005 23:23:13 +0000 Subject: [PATCH] Reject slapadd -w if not supported (partial ITS#3979 fix) --- servers/slapd/slapadd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.39.5