r12599: This new LDB module (and associated changes) allows Samba4 to operate
authorAndrew Bartlett <abartlet@samba.org>
Fri, 30 Dec 2005 08:40:16 +0000 (08:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:49:01 +0000 (13:49 -0500)
commitc82c9fe7bb47aa95d112159e46e79f52afe6f58d
tree6b38abc284c8c84a1ff5157e1d11aed14f9a426d
parent1c027f35d70b0719ba671034e897834b4bed9c4f
r12599: This new LDB module (and associated changes) allows Samba4 to operate
using pre-calculated passwords for all kerberos key types.
(Previously we could only use these for the NT# type).

The module handles all of the hash/string2key tasks for all parts of
Samba, which was previously in the rpc_server/samr/samr_password.c
code.  We also update the msDS-KeyVersionNumber, and the password
history.  This new module can be called at provision time, which
ensures we start with a database that is consistent in this respect.

By ensuring that the krb5key attribute is the only one we need to
retrieve, this also simplifies the run-time KDC logic.  (Each value of
the multi-valued attribute is encoded as a 'Key' in ASN.1, using the
definition from Heimdal's HDB.  This simplfies the KDC code.).

It is hoped that this will speed up the KDC enough that it can again
operate under valgrind.
(This used to be commit e9022743210b59f19f370d772e532e0f08bfebd9)
source4/auth/auth_sam.c
source4/dsdb/samdb/ldb_modules/config.mk
source4/dsdb/samdb/ldb_modules/password_hash.c [new file with mode: 0644]
source4/dsdb/samdb/samdb.c
source4/kdc/hdb-ldb.c
source4/lib/ldb/common/ldb_modules.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/samr/dcesrv_samr.c
source4/rpc_server/samr/samr_password.c
source4/setup/provision_init.ldif