From eae0617c4e86140f2242ecfeef87458aa6881a13 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 20 Feb 2003 22:09:54 +0000 Subject: Added Volkers "print server role" patch. Jeremy. (This used to be commit b14e174c65b399e606f4f740762ff4646b8f9eef) --- source3/utils/testparm.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'source3/utils/testparm.c') diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index 36b2bdfc6d1..0fafd1b83d2 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"); -- cgit v1.2.1