1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Remove an unused paramter for our old LM-only password change code, and fix a

(harmless) fstring/pstring mixup.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett -
parent fe1cc779d5
commit 5ff5f540cc
2 changed files with 3 additions and 4 deletions

View File

@ -672,8 +672,7 @@ BOOL check_lanman_password(char *user, uchar * pass1,
no longer be valid.
************************************************************/
BOOL change_lanman_password(SAM_ACCOUNT *sampass, uchar * pass1,
uchar * pass2)
BOOL change_lanman_password(SAM_ACCOUNT *sampass, uchar *pass2)
{
static uchar null_pw[16];
uchar unenc_new_pw[16];

View File

@ -1008,7 +1008,7 @@ static int get_server_info(uint32 servertype,
if (!next_token(&ptr,s->comment, NULL, sizeof(s->comment))) continue;
if (!next_token(&ptr,s->domain , NULL, sizeof(s->domain))) {
/* this allows us to cope with an old nmbd */
pstrcpy(s->domain,lp_workgroup());
fstrcpy(s->domain,lp_workgroup());
}
if (sscanf(stype,"%X",&s->type) != 1) {
@ -1955,7 +1955,7 @@ static BOOL api_SetUserPassword(connection_struct *conn,uint16 vuid, char *param
SAM_ACCOUNT *hnd = NULL;
if (check_lanman_password(user,(unsigned char *)pass1,(unsigned char *)pass2, &hnd) &&
change_lanman_password(hnd,(unsigned char *)pass1,(unsigned char *)pass2))
change_lanman_password(hnd,pass2))
{
SSVAL(*rparam,0,NERR_Success);
}