Reject slapadd -w if not supported (partial ITS#3979 fix)

This commit is contained in:
Hallvard Furuseth 2005-08-31 23:23:13 +00:00
parent a18543d1ff
commit 4faa77f440

View 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 );