Consolidate user create/delete paths in smbpasswd
commit0e02eab5f63ead8296ba66260f6f204f0dc22fc2
authorSimo Sorce <idra@samba.org>
Sat, 16 May 2009 22:10:39 +0000 (16 18:10 -0400)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Jun 2009 07:33:42 +0000 (11 09:33 +0200)
tree1800d8b07a8ee8f2c295ddd7c07361bca8eea0cb
parent3b8f3604d694c0407fedf5d0d184e00cb69b674f
Consolidate user create/delete paths in smbpasswd

This patch changes the way smbpasswd behaves when adding/deleting users.
smbpasswd now calls pdb_create_user/pdb_delete_user, this means that if
add/delete user scripts are configured then they are used to create or
delete unix users as well. If the scripts are not defined the behavioris
unchanged.
This also allow to use smbpasswd -a/-x with ldapsam:editposix to allow
automatic creation/deletion of users.

Part 2/2 for bug #6333.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 64d1b5c4e1efd734176c1ea6e5e564e626128b4f)
(cherry picked from commit 7086d3164cb897adb23e753294ca78bdfe01d4a5)
source3/passdb/passdb.c
source3/utils/smbpasswd.c