From: Kurt Zeilenga Date: Thu, 21 Jun 2007 22:01:36 +0000 (+0000) Subject: Send common request controls with extended request. X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~365 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae47797cc884167529599d884e2bb922cec60ed5;p=openldap Send common request controls with extended request. Only bitch about missing genPassword in success response. --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 36b148de5b..5d676e399e 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -311,6 +311,8 @@ main( int argc, char *argv[] ) goto done; } + tool_server_controls( ld, NULL, 0); + rc = ldap_extended_operation( ld, LDAP_EXOP_MODIFY_PASSWD, bv.bv_val ? &bv : NULL, NULL, NULL, &id ); @@ -382,7 +384,7 @@ main( int argc, char *argv[] ) ber_free( ber, 1 ); - } else if ( newpw.bv_val == NULL ) { + } else if ( code == LDAP_SUCCESS && newpw.bv_val == NULL ) { tool_perror( "ldap_parse_extended_result", LDAP_DECODING_ERROR, " new password expected", NULL, NULL, NULL ); }