summaryrefslogtreecommitdiffstats
path: root/source/libsmb
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
commitd3ac2265b1b83e2e030688ee8e0d43918ce4d203 (patch)
tree1bcd61898fbc06ba4cac88307a61f560d83f28b3 /source/libsmb
parentf881a8f197a6f6d9512693c4cb705cda1b1d5041 (diff)
downloadsamba-d3ac2265b1b83e2e030688ee8e0d43918ce4d203.tar.gz
samba-d3ac2265b1b83e2e030688ee8e0d43918ce4d203.tar.xz
samba-d3ac2265b1b83e2e030688ee8e0d43918ce4d203.zip
Always use ASCII strings when changing passwords with RAP.
Jeremy.
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/clirap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libsmb/clirap.c b/source/libsmb/clirap.c
index 2136ba118b6..4484b613810 100644
--- a/source/libsmb/clirap.c
+++ b/source/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);