s4:dsdb/password_hash: add the UF_SMARTCARD_REQUIRED password reset magic
commitacb208625b43191db44e3969b67d80d32436e79e
authorStefan Metzmacher <metze@samba.org>
Tue, 31 May 2016 14:39:06 +0000 (31 16:39 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 22 Jul 2016 21:34:21 +0000 (22 23:34 +0200)
tree5756dca15741f4186c76db9ea1387c7c04ee2c1d
parentaf4dc2231446b292cec91b1853a991df7c97b8e2
s4:dsdb/password_hash: add the UF_SMARTCARD_REQUIRED password reset magic

When UF_SMARTCARD_REQUIRED is set to an account we need to remove
the current password and add random NT and LM hashes (without updating
the pwdLastSet field.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/password_hash.c