This patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> cleans up
authorAndrew Bartlett <abartlet@samba.org>
Wed, 25 Sep 2002 11:34:31 +0000 (11:34 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Sep 2002 11:34:31 +0000 (11:34 +0000)
commitf13e243f1a13d34ae057b40b01f561e8b95d4570
tree8b4f83c0821a823077611b5ffaffaea30e505ff5
parent779aea57450db83fa7870e8a35db55d475682519
This patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> cleans up
pdb_ldap and adds a 'ldap passwd sync' option.

The idea with this option is to do allow an ldap backend to do all the fancy
password hashing etc - and to tell smbd no to try and double-up.  Using 'ldap
passwd sync = only' will do this, but is not recommended unless such a backend
is in place...

Running 'ldap passwd sync = yes' just gets you the same as doing 'pam passwd
sync = yes' and having both PAM and pam_ldap correctly configured for 'magic
root' behaviour, but only using ldap connection, and one set of credentials.

This also gets us closer to allowing ldap to say 'password too short' etc,
which might assist in maintaining a consistant password policy.

Andrew Bartlett
source/include/smb.h
source/param/loadparm.c
source/passdb/passdb.c
source/passdb/pdb_get_set.c
source/passdb/pdb_ldap.c