diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-11-10 12:45:54 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-11-17 00:34:08 +0100 |
commit | 9524e2fce1b7f644fef5f7c8134f72681d786e65 (patch) | |
tree | 0ffe517b8f05845767921af0c255eea71da5f71e /script | |
parent | f099feaa01b6548cb60cb9d7d50b1f196b1af878 (diff) | |
download | samba-9524e2fce1b7f644fef5f7c8134f72681d786e65.tar.gz |
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>
Diffstat (limited to 'script')
-rw-r--r-- | script/mks3param.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/mks3param.pl b/script/mks3param.pl index 2679b5acae2..3126af502c3 100644 --- a/script/mks3param.pl +++ b/script/mks3param.pl @@ -95,6 +95,7 @@ sub print_header($$) $file->("\tbool (*load)(const char *filename);\n"); $file->("\tbool (*set_cmdline)(const char *pszParmName, const char *pszParmValue);\n"); $file->("\tvoid (*dump)(FILE *f, bool show_defaults, int maxtoprint);\n"); + $file->("\tint (*server_role)(void);\n"); } sub print_footer($$) |