]> git.sur5r.net Git - openldap/commitdiff
Fix req DN massaging
authorHoward Chu <hyc@openldap.org>
Fri, 4 Apr 2003 02:05:49 +0000 (02:05 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 4 Apr 2003 02:05:49 +0000 (02:05 +0000)
servers/slapd/back-ldap/add.c

index 24b3ad9226d581435a1c9123623364bafd361933..f6fa13cae653144905d5e91e573b12da3966d745 100644 (file)
@@ -80,7 +80,7 @@ ldap_back_add(
                if ( mdn.bv_val != NULL && mdn.bv_val[ 0 ] != '\0' ) {
                        mdn.bv_len = strlen( mdn.bv_val );
                } else {
-                       mdn = op->o_req_ndn;
+                       mdn = op->o_req_dn;
                }
 #ifdef NEW_LOGGING
                LDAP_LOG( BACK_LDAP, DETAIL1, 
@@ -102,7 +102,7 @@ ldap_back_add(
                return( -1 );
        }
 #else /* !ENABLE_REWRITE */
-       ldap_back_dn_massage( li, &op->o_req_ndn, &mdn, 0, 1 );
+       ldap_back_dn_massage( li, &op->o_req_dn, &mdn, 0, 1 );
 #endif /* !ENABLE_REWRITE */
 
        /* Count number of attributes in entry */