summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-12 19:40:22 +0000
committerJeremy Allison <jra@samba.org>2001-12-12 19:40:22 +0000
commita85390ae696998096b9323fd388fe0f1a9e1795c (patch)
tree51a1a7f9c27d36fc2486e8e200bc6bd1c4699876
parent62877996e41ffd9c1479f0887496e196c61ef96f (diff)
downloadsamba-a85390ae696998096b9323fd388fe0f1a9e1795c.tar.gz
samba-a85390ae696998096b9323fd388fe0f1a9e1795c.tar.bz2
samba-a85390ae696998096b9323fd388fe0f1a9e1795c.zip
Always use ASCII strings when changing passwords with RAP.
Jeremy. (This used to be commit d3ac2265b1b83e2e030688ee8e0d43918ce4d203)
-rw-r--r--source3/libsmb/clirap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 2136ba118b..4484b61381 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -318,10 +318,10 @@ BOOL cli_oem_change_password(struct cli_state *cli, const char *user, const char
* use this as the key to make_oem_passwd_hash().
*/
memset(upper_case_old_pw, '\0', sizeof(upper_case_old_pw));
- clistr_push(cli, upper_case_old_pw, old_password, -1,STR_TERMINATE|STR_UPPER);
+ clistr_push(cli, upper_case_old_pw, old_password, -1,STR_TERMINATE|STR_UPPER|STR_ASCII);
E_P16((uchar *)upper_case_old_pw, old_pw_hash);
- clistr_push(cli, dos_new_password, new_password, -1, STR_TERMINATE);
+ clistr_push(cli, dos_new_password, new_password, -1, STR_TERMINATE|STR_ASCII);
if (!make_oem_passwd_hash( data, dos_new_password, old_pw_hash, False))
return False;
@@ -330,7 +330,7 @@ BOOL cli_oem_change_password(struct cli_state *cli, const char *user, const char
* Now place the old password hash in the data.
*/
memset(upper_case_new_pw, '\0', sizeof(upper_case_new_pw));
- clistr_push(cli, upper_case_new_pw, new_password, -1, STR_TERMINATE|STR_UPPER);
+ clistr_push(cli, upper_case_new_pw, new_password, -1, STR_TERMINATE|STR_UPPER|STR_ASCII);
E_P16((uchar *)upper_case_new_pw, new_pw_hash);