diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c index 34058917fb..9369d7c690 100644 --- a/servers/slapd/slapadd.c +++ b/servers/slapd/slapadd.c @@ -255,6 +255,20 @@ slapadd( int argc, char **argv ) attr_merge( e, slap_schema.si_ad_creatorsName, vals, nvals ); } + if( attr_find( e->e_attrs, slap_schema.si_ad_createTimestamp ) + == NULL ) + { + vals[0] = timestamp; + attr_merge( e, slap_schema.si_ad_createTimestamp, vals, NULL ); + } + + if( attr_find( e->e_attrs, slap_schema.si_ad_entryCSN ) + == NULL ) + { + vals[0] = csn; + attr_merge( e, slap_schema.si_ad_entryCSN, vals, NULL ); + } + if( attr_find( e->e_attrs, slap_schema.si_ad_modifiersName ) == NULL ) { @@ -263,13 +277,6 @@ slapadd( int argc, char **argv ) attr_merge( e, slap_schema.si_ad_modifiersName, vals, nvals ); } - if( attr_find( e->e_attrs, slap_schema.si_ad_createTimestamp ) - == NULL ) - { - vals[0] = timestamp; - attr_merge( e, slap_schema.si_ad_createTimestamp, vals, NULL ); - } - if( attr_find( e->e_attrs, slap_schema.si_ad_modifyTimestamp ) == NULL ) { @@ -277,13 +284,6 @@ slapadd( int argc, char **argv ) attr_merge( e, slap_schema.si_ad_modifyTimestamp, vals, NULL ); } - if( attr_find( e->e_attrs, slap_schema.si_ad_entryCSN ) - == NULL ) - { - vals[0] = csn; - attr_merge( e, slap_schema.si_ad_entryCSN, vals, NULL ); - } - if ( update_ctxcsn ) { int rc_sid;