s4:dsdb/password_hash: Honor password complexity settings.
commit48ac5842dd9f13619d652af1dfe1b04dc79ada7d
authorStefan Metzmacher <metze@samba.org>
Fri, 23 Nov 2012 10:49:05 +0000 (23 11:49 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 11 Dec 2012 12:59:58 +0000 (11 13:59 +0100)
treee3525d038212d2aca791592fdbc9904cc2aac123
parenta5e6b05edc924bcf7859e5d6b74937ac54347a08
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>
Pair-Programmed-With: Michael Adam <obnox@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
source4/dsdb/samdb/ldb_modules/password_hash.c