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

password_hash: don't add zero padding as w2k8 also don't add it

metze
(This used to be commit 26e9169d454349795ad0bc64d7f65059541ab89e)
This commit is contained in:
Stefan Metzmacher 2008-07-22 18:31:45 +02:00
parent b4e9e8954a
commit bcb0db3634

View File

@ -925,16 +925,6 @@ static int setup_supplemental_field(struct setup_password_fields_io *io)
nt_errstr(status));
return LDB_ERR_OPERATIONS_ERROR;
}
/*
* TODO:
*
* This is ugly, but we want to generate the same blob as
* w2k and w2k3...we should handle this in the idl
*/
if (!data_blob_append(io->ac, &pkb_blob, zero16, sizeof(zero16))) {
ldb_oom(io->ac->module->ldb);
return LDB_ERR_OPERATIONS_ERROR;
}
pkb_hexstr = data_blob_hex_string(io->ac, &pkb_blob);
if (!pkb_hexstr) {
ldb_oom(io->ac->module->ldb);