Fix modrdn

This commit is contained in:
Kurt Zeilenga 2001-12-25 03:47:35 +00:00
parent ae0a17fa4e
commit c3323c31d5
3 changed files with 5 additions and 2 deletions

View file

@ -74,7 +74,7 @@ passwd_back_search(
vals[0] = &val;
vals[1] = NULL;
matched = base;
matched = (char *) base;
if( scope != LDAP_SCOPE_ONELEVEL ) {
char *type;

View file

@ -363,6 +363,9 @@ do_modrdn(
goto cleanup;
}
/* deref suffix alias if appropriate */
suffix_alias( be, nnewSuperior );
}
/* deref suffix alias if appropriate */

View file

@ -213,7 +213,7 @@ replog(
case LDAP_REQ_MODRDN:
moddn = change;
fprintf( fp, "changetype: modrdn\n" );
fprintf( fp, "newrdn: %s\n", moddn->newrdn );
fprintf( fp, "newrdn: %s\n", moddn->newrdn->bv_val );
fprintf( fp, "deleteoldrdn: %d\n", moddn->deloldrdn ? 1 : 0 );
if( moddn->newsup != NULL ) {
fprintf( fp, "newsuperior: %s\n", moddn->newsup->bv_val );