From: Kurt Zeilenga Date: Mon, 17 Jan 2000 18:46:06 +0000 (+0000) Subject: Incorporate modify* attributes in add to workaround netscape bug. X-Git-Tag: OPENLDAP_REL_ENG_1_2_9~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=850bfb9cafc87733841d1745327e3489117d5267;p=thirdparty%2Fopenldap.git Incorporate modify* attributes in add to workaround netscape bug. LDAPext has agreed that the specs should updated to call for this behavior in RFC2252bis. Hopefully this won't break any existing clients. --- diff --git a/CHANGES b/CHANGES index 17fb086c24..086ed1a17b 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ Changes included in OpenLDAP 1.2.9 Fixed lutil/password bogus crypt password bug (ITS#423) Fixed slapd/back-ldbm indexing bug (ITS#402) Added UD support for creators/modifiers attributes (ITS#422) + Added modify* attributes on add to workaround client issue (ITS#424) Build Environment Rebuild configure Added support for db1 vs db2 with glibc 2.1 diff --git a/servers/slapd/add.c b/servers/slapd/add.c index e128d81af7..d9ddfdf768 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -180,6 +180,7 @@ add_created_attrs( Operation *op, Entry *e ) bv.bv_len = strlen( bv.bv_val ); } attr_merge( e, "creatorsname", bvals ); + attr_merge( e, "modifiersname", bvals ); ldap_pvt_thread_mutex_lock( ¤ttime_mutex ); #ifndef LDAP_LOCALTIME @@ -194,4 +195,5 @@ add_created_attrs( Operation *op, Entry *e ) bv.bv_val = buf; bv.bv_len = strlen( bv.bv_val ); attr_merge( e, "createtimestamp", bvals ); + attr_merge( e, "modifytimestamp", bvals ); }