CVE-2013-4496:Revert remainder of ce895609b04380bfc41e4f8fddc84bd2f9324340
commite999b98ccead0794007a14326c894d2a4a6d7bea
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Nov 2013 17:50:01 +0000 (28 06:50 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 Mar 2014 18:32:46 +0000 (11 19:32 +0100)
tree0f6bdcc93028dc590c82138b99574f8db6af92fa
parent6b8bca5d9345517979342ca12cb9f65857c21ca2
CVE-2013-4496:Revert remainder of ce895609b04380bfc41e4f8fddc84bd2f9324340

Part of this was removed when ChangePasswordUser was unimplemented,
but remove the remainder of this flawed commit.  Fully check the
password first, as extract_pw_from_buffer() already does a partial
check of the password because it needs a correct old password to
correctly decrypt the length.

Andrew Bartlett

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10245

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/rpc_server/samr/samr_password.c