Consolidate user create/delete paths in smbpasswd
authorSimo Sorce <idra@samba.org>
Sat, 16 May 2009 22:10:39 +0000 (18:10 -0400)
committerGünther Deschner <gd@samba.org>
Fri, 29 May 2009 16:03:42 +0000 (18:03 +0200)
commit64d1b5c4e1efd734176c1ea6e5e564e626128b4f
tree8cbd3e86db2929b383b0f82e5222ae143f279928
parentfa3a6652211076772b1b24a3a2216014a16e4054
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.

Signed-off-by: Günther Deschner <gd@samba.org>
source3/passdb/passdb.c
source3/utils/smbpasswd.c