Ok here it is my latest work on privileges
authorSimo Sorce <idra@samba.org>
Mon, 1 Mar 2004 16:10:28 +0000 (16:10 +0000)
committerSimo Sorce <idra@samba.org>
Mon, 1 Mar 2004 16:10:28 +0000 (16:10 +0000)
commit7a78c3605e203bd8e0d7ae244605f076a5d0b0bc
tree81eb21153734c7977d535480cc00f3144186ea2b
parenteb18cb83d13d664896468d200d9dc353da13c561
Ok here it is my latest work on privileges

This patch add privilege support for samba
Currently it is implemented only for tdbsam backend but estending it to
other sam backends is straightforward.

I must make a big thank to JFM for his teachings on the matter and the
functions at the base of this work.

At thye moment only samr_create_user honours SeAddUsersPrivilege and
SeMachineAccountPrivilege to permit any user to add machines and/or users to
the server.

The command "net priv" has been provided to manipulate the privileges
database.

There are still many things to do (like support in "net rpc vampire") but
the working core is here.

Feel free to comment/extend on this work.

Of course I will deny that any bug may affect this code :-)
Simo.

This patch adds also my patch about add share command enhancements.
24 files changed:
source/Makefile.in
source/auth/auth_util.c
source/groupdb/mapping.c
source/include/auth.h
source/include/includes.h
source/include/passdb.h
source/include/privileges.h
source/include/smb.h
source/lib/privileges.c
source/param/loadparm.c
source/passdb/pdb_interface.c
source/passdb/pdb_tdb.c
source/rpc_server/srv_lsa_nt.c
source/rpc_server/srv_pipe_hnd.c
source/rpc_server/srv_samr_nt.c
source/rpc_server/srv_srvsvc_nt.c
source/sam/gums.c
source/smbd/chgpasswd.c
source/smbd/conn.c
source/smbd/password.c
source/smbd/sec_ctx.c
source/smbd/service.c
source/smbd/uid.c
source/utils/net.c