s4:dsdb/password_hash: Honor password complexity settings.
commitf8056b7a6998e002f473b0ad79eee046236a7032
authorStefan Metzmacher <metze@samba.org>
Fri, 23 Nov 2012 10:49:05 +0000 (23 11:49 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Dec 2012 04:11:43 +0000 (6 05:11 +0100)
tree659f0a320e9839d6fade9ff53d30405c8108dcd6
parent171c63c3c45743f215ad360f928d9506951ddcd8
s4:dsdb/password_hash: Honor password complexity settings.

Honor password complexity settings when creating new users.
Without this patch, you could set simple passwords although the complexity
settings were enabled. This was an issue with 'samba-tool user add' and also
when adding new users via Windows' "Active Directory Users and Computers"
MMC Snap-In.

The following scenarios were tested successfully after applying the patch:
-'samba-tool user add' against s4
-'samba-tool user add -H' against a Windows DC
-Adding a new user on a s4 DC using Windows' "Active Directory Users and
 Computers" MMC Snap-In.

Please note that this bug was caused by a mistake in the documentation.

Fix bug #9414 - 'samba-tool user add' ignores password complexity settings.

Pair-programmed-with: Karolin Seeger <kseeger@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Karolin Seeger <kseeger@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Dec  6 05:11:43 CET 2012 on sn-devel-104
source4/dsdb/samdb/ldb_modules/password_hash.c