diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-22 21:01:16 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-23 15:02:26 +0200 |
commit | 8c71dc3505ab83ce95ab40a56f77313c4448be16 (patch) | |
tree | 2b05134a58d1f78afde52fdc81a95c69b5691135 /source3/winbindd | |
parent | 332efe1539d83c0971f151f902f234e5a8bf0690 (diff) | |
download | samba-8c71dc3505ab83ce95ab40a56f77313c4448be16.tar.gz samba-8c71dc3505ab83ce95ab40a56f77313c4448be16.tar.bz2 samba-8c71dc3505ab83ce95ab40a56f77313c4448be16.zip |
param: Add startup checks for valid server role/binary combinations
This should eliminate confusion from our users about what they can
expect to successfully run.
Andrew Bartlett
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index c43b5859e2..eab62a7028 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1406,6 +1406,12 @@ int main(int argc, char **argv, char **envp) */ dump_core_setup("winbindd", lp_logfile(talloc_tos())); + if (lp_server_role() == ROLE_ACTIVE_DIRECTORY_DC) { + DEBUG(0, ("server role = 'active directory domain controller' not compatible with running the winbindd binary. \n")); + DEBUGADD(0, ("You should start 'samba' instead, and it will control starting the internal AD DC winbindd implementation, which is not the same as this one\n")); + exit(1); + } + /* Initialise messaging system */ if (winbind_messaging_context() == NULL) { |