1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00

BDC support.

(This used to be commit 05a2687b7c)
This commit is contained in:
Matthew Chapman 1999-07-22 10:55:23 +00:00
parent 61b92043da
commit d0d85964da

View File

@ -1936,14 +1936,17 @@ void display_sam_sync_ctr(FILE *out_hnd, enum action_type action,
}
case 5:
{
unsigned char lm_pwd[16];
unsigned char nt_pwd[16];
unistr2_to_ascii(name, &(ctr->account_info.uni_acct_name), sizeof(name)-1);
fprintf(out_hnd, "Account: %s\n", name);
out_struct(out_hnd,
ctr->account_info.pass.buf_lm_pwd, 16, 8);
out_struct(out_hnd,
ctr->account_info.pass.buf_nt_pwd, 16, 8);
sam_pwd_hash(ctr->account_info.user_rid, ctr->account_info.pass.buf_lm_pwd, lm_pwd, 0);
out_struct(out_hnd, lm_pwd, 16, 8);
sam_pwd_hash(ctr->account_info.user_rid, ctr->account_info.pass.buf_nt_pwd, nt_pwd, 0);
out_struct(out_hnd, nt_pwd, 16, 8);
}
}
break;