param: calculate server role from security, and security from server role
authorAndrew Bartlett <abartlet@samba.org>
Thu, 10 Nov 2011 01:45:54 +0000 (12:45 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Nov 2011 23:34:08 +0000 (00:34 +0100)
commit9524e2fce1b7f644fef5f7c8134f72681d786e65
tree0ffe517b8f05845767921af0c255eea71da5f71e
parentf099feaa01b6548cb60cb9d7d50b1f196b1af878
param: calculate server role from security, and security from server role

This allows smb.conf files from either the samba3 or samba4 tradition
to come to the same value of server role, using the information in the
smb.conf file.

This is important so that tools like 'net getlocalsid' work against a
Samba4 AD installation (yes, users have tried this).

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
lib/param/loadparm.c
lib/param/loadparm_server_role.c [moved from source3/param/loadparm_server_role.c with 62% similarity]
lib/param/loadparm_server_role.h [new file with mode: 0644]
lib/param/wscript_build
libds/common/roles.h
script/mks3param.pl
source3/Makefile.in
source3/include/proto.h
source3/param/loadparm.c
source3/param/loadparm_ctx.c
source3/wscript_build