diff options
author | Jeremy Allison <jra@samba.org> | 2003-02-20 22:09:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-02-20 22:09:54 +0000 |
commit | eae0617c4e86140f2242ecfeef87458aa6881a13 (patch) | |
tree | 66eb97d4084395f4a4ad45acf6751d77bd14ee1b | |
parent | aa6380100a8fbf72544ff209f959bd4dacee75b5 (diff) | |
download | samba-eae0617c4e86140f2242ecfeef87458aa6881a13.tar.gz samba-eae0617c4e86140f2242ecfeef87458aa6881a13.tar.bz2 samba-eae0617c4e86140f2242ecfeef87458aa6881a13.zip |
Added Volkers "print server role" patch.
Jeremy.
(This used to be commit b14e174c65b399e606f4f740762ff4646b8f9eef)
-rw-r--r-- | source3/utils/testparm.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index 36b2bdfc6d..0fafd1b83d 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -283,6 +283,28 @@ int main(int argc, const char *argv[]) } } + + if (!silent_mode) { + printf("Server role: "); + switch(lp_server_role()) { + case ROLE_STANDALONE: + printf("ROLE_STANDALONE\n"); + break; + case ROLE_DOMAIN_MEMBER: + printf("ROLE_DOMAIN_MEMBER\n"); + break; + case ROLE_DOMAIN_BDC: + printf("ROLE_DOMAIN_BDC\n"); + break; + case ROLE_DOMAIN_PDC: + printf("ROLE_DOMAIN_PDC\n"); + break; + default: + printf("Unknown -- internal error?\n"); + break; + } + } + if (!cname) { if (!silent_mode) { printf("Press enter to see a dump of your service definitions\n"); |