diff options
Diffstat (limited to 'source3/utils/testparm.c')
-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"); |