Commit 7f604a69 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Tweak order of operational attrs

parent 1d841e47
...@@ -255,33 +255,33 @@ slapadd( int argc, char **argv ) ...@@ -255,33 +255,33 @@ slapadd( int argc, char **argv )
attr_merge( e, slap_schema.si_ad_creatorsName, vals, nvals ); attr_merge( e, slap_schema.si_ad_creatorsName, vals, nvals );
} }
if( attr_find( e->e_attrs, slap_schema.si_ad_modifiersName ) if( attr_find( e->e_attrs, slap_schema.si_ad_createTimestamp )
== NULL ) == NULL )
{ {
vals[0] = name; vals[0] = timestamp;
nvals[0] = nname; attr_merge( e, slap_schema.si_ad_createTimestamp, vals, NULL );
attr_merge( e, slap_schema.si_ad_modifiersName, vals, nvals );
} }
if( attr_find( e->e_attrs, slap_schema.si_ad_createTimestamp ) if( attr_find( e->e_attrs, slap_schema.si_ad_entryCSN )
== NULL ) == NULL )
{ {
vals[0] = timestamp; vals[0] = csn;
attr_merge( e, slap_schema.si_ad_createTimestamp, vals, NULL ); attr_merge( e, slap_schema.si_ad_entryCSN, vals, NULL );
} }
if( attr_find( e->e_attrs, slap_schema.si_ad_modifyTimestamp ) if( attr_find( e->e_attrs, slap_schema.si_ad_modifiersName )
== NULL ) == NULL )
{ {
vals[0] = timestamp; vals[0] = name;
attr_merge( e, slap_schema.si_ad_modifyTimestamp, vals, NULL ); nvals[0] = nname;
attr_merge( e, slap_schema.si_ad_modifiersName, vals, nvals );
} }
if( attr_find( e->e_attrs, slap_schema.si_ad_entryCSN ) if( attr_find( e->e_attrs, slap_schema.si_ad_modifyTimestamp )
== NULL ) == NULL )
{ {
vals[0] = csn; vals[0] = timestamp;
attr_merge( e, slap_schema.si_ad_entryCSN, vals, NULL ); attr_merge( e, slap_schema.si_ad_modifyTimestamp, vals, NULL );
} }
if ( update_ctxcsn ) { if ( update_ctxcsn ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment