r4724: Add support for Windows privileges in Samba 3.0
authorGerald Carter <jerry@samba.org>
Thu, 13 Jan 2005 18:20:37 +0000 (18:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:51 +0000 (10:53 -0500)
commit77c10ff9aa6414a31eece6dfec00793f190a9d6c
treed7f1fad73b4a86e91a92d69beee2829b3125e766
parentdddd5726462c13374788713ad5ddcbdf9ee7b439
r4724: Add support for Windows privileges in Samba 3.0
(based on Simo's code in trunk).  Rewritten with the
following changes:

* privilege set is based on a 32-bit mask instead of strings
  (plans are to extend this to a 64 or 128-bit mask before
   the next 3.0.11preX release).
* Remove the privilege code from the passdb API
  (replication to come later)
* Only support the minimum amount of privileges that make
  sense.
* Rewrite the domain join checks to use the SeMachineAccountPrivilege
  instead of the 'is a member of "Domain Admins"?' check that started
  all this.

Still todo:

* Utilize the SePrintOperatorPrivilege in addition to the 'printer admin'
  parameter
* Utilize the SeAddUserPrivilege for adding users and groups
* Fix some of the hard coded _lsa_*() calls
* Start work on enough of SAM replication to get privileges from one
  Samba DC to another.
* Come up with some management tool for manipultaing privileges
  instead of user manager since it is buggy when run on a 2k client
  (haven't tried xp).  Works ok on NT4.
18 files changed:
source/Makefile.in
source/auth/auth_util.c
source/groupdb/mapping.c
source/include/includes.h
source/include/privileges.h
source/include/rpc_lsa.h
source/include/smb.h
source/lib/account_pol.c
source/lib/privileges.c
source/lib/util_sid.c
source/passdb/pdb_tdb.c
source/passdb/privileges.c [deleted file]
source/passdb/util_sam_sid.c
source/rpc_client/cli_lsarpc.c
source/rpc_parse/parse_lsa.c
source/rpc_server/srv_lsa.c
source/rpc_server/srv_lsa_nt.c
source/rpc_server/srv_samr_nt.c