From: Howard Chu Date: Mon, 24 Sep 2007 05:30:36 +0000 (+0000) Subject: Partially revert prev commit, unintended. X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~604 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dcaa5a27f59c7a8863b5e990f9b9d5cccd94658c;p=openldap Partially revert prev commit, unintended. --- diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index ac430f20e8..ed9fbfa9bb 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -868,6 +868,27 @@ rwm_exop_passwd( Operation *op, SlapReply *rs ) return -1; } + ber = ber_alloc_t( LBER_USE_DER ); + if ( !ber ) { + rs->sr_err = LDAP_OTHER; + rs->sr_text = "No memory"; + return rs->sr_err; + } + ber_printf( ber, "{" ); + if ( !BER_BVISNULL( &id )) { + ber_printf( ber, "tO", LDAP_TAG_EXOP_MODIFY_PASSWD_ID, + &op->o_req_dn ); + } + if ( !BER_BVISNULL( &pwold )) { + ber_printf( ber, "tO", LDAP_TAG_EXOP_MODIFY_PASSWD_OLD, &pwold ); + } + if ( !BER_BVISNULL( &pwnew )) { + ber_printf( ber, "tO", LDAP_TAG_EXOP_MODIFY_PASSWD_NEW, &pwnew ); + } + ber_printf( ber, "N}" ); + ber_flatten( ber, &op->ore_reqdata ); + ber_free( ber, 1 ); + op->o_callback = &roc->cb; return SLAP_CB_CONTINUE;