From bcf2c5677ea4ca1afd10ea9e00dc2b692a57d18b Mon Sep 17 00:00:00 2001 From: Jack Magne Date: Tue, 18 Aug 2015 16:50:50 -0700 Subject: Minor fix to "setpin" fix. The routine that sets the password of the "pinmanager" user was not working. A very simple one character fix takes care of it. Ticket # 1546 - Setpin utility doesn't set the pin for users. Checking in under the one line trivial change rule. (cherry picked from commit 6260a6d20c113343dd04cdbed999865ebc1650c9) --- base/native-tools/src/setpin/setpin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base') diff --git a/base/native-tools/src/setpin/setpin.c b/base/native-tools/src/setpin/setpin.c index a16471908..ab1fc6326 100644 --- a/base/native-tools/src/setpin/setpin.c +++ b/base/native-tools/src/setpin/setpin.c @@ -548,7 +548,7 @@ sha256_pw_enc( char *pwd ) sprintf( enc, "{SHA256}"); - (void)ldif_base64_encode( hash, enc + 5, + (void)ldif_base64_encode( hash, enc + 8, SHA256_LENGTH, -1 ); return( enc ); -- cgit