complain if new password is not returned when expected

This commit is contained in:
Pierangelo Masarati 2006-01-02 14:16:34 +00:00
parent 0e6f61aa03
commit 9db7874784

View File

@ -380,6 +380,10 @@ main( int argc, char *argv[] )
}
ber_free( ber, 1 );
} else if ( newpw.bv_val == NULL ) {
tool_perror( "ldap_parse_extended_result", LDAP_DECODING_ERROR,
" new password expected", NULL, NULL, NULL );
}
if( verbose || code != LDAP_SUCCESS || matcheddn || text || refs ) {