CVE-2013-4496:samr: Remove ChangePasswordUser
commit6b8bca5d9345517979342ca12cb9f65857c21ca2
authorAndrew Bartlett <abartlet@samba.org>
Tue, 5 Nov 2013 03:16:46 +0000 (5 16:16 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 Mar 2014 18:32:45 +0000 (11 19:32 +0100)
tree3ba2fbd72617baa83eab46e0bff884ecb541bc64
parentd8b5c1bb6577102b8e0dcb43be673b09b5187455
CVE-2013-4496:samr: Remove ChangePasswordUser

This old password change mechanism does not provide the plaintext to
validate against password complexity, and it is not used by modern
clients.

The missing features in both implementations (by design) were:

 - the password complexity checks (no plaintext)
 - the minimum password length (no plaintext)

Additionally, the source3 version did not check:

 - the minimum password age
 - pdb_get_pass_can_change() which checks the security
   descriptor for the 'user cannot change password' setting.
 - the password history
 - the output of the 'passwd program' if 'unix passwd sync = yes'.

Finally, the mechanism was almost useless, as it was incorrectly
only made available to administrative users with permission
to reset the password.  It is removed here so that it is not
mistakenly reinstated in the future.

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>
source3/rpc_server/samr/srv_samr_nt.c
source3/smbd/lanman.c
source4/rpc_server/samr/samr_password.c
source4/torture/rpc/samr.c