diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index f947228340..d3a5a8ee54 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -426,7 +426,7 @@ op_ldap_modrdn( return -1; } - newrdn = mi[ i ].mi_val; + newsup = mi[ i ].mi_val; state |= GOT_NEWSUP; } else { @@ -463,7 +463,7 @@ op_ldap_modrdn( #endif /* LDAP_DEBUG */ /* Do the modrdn */ - rc = ldap_rename2_s( ri->ri_ldp, re->re_dn, mi->mi_val, newsup, drdnflag ); + rc = ldap_rename2_s( ri->ri_ldp, re->re_dn, newrdn, newsup, drdnflag ); ldap_get_option( ri->ri_ldp, LDAP_OPT_ERROR_NUMBER, &lderr); return( lderr );