diff options
author | Jeremy Allison <jra@samba.org> | 2003-02-20 22:09:57 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-02-20 22:09:57 +0000 |
commit | 1009ef3e37c82682e9c2c4c63bc7407420f20af8 (patch) | |
tree | cc0b8965af5fc67458b0a89c9ef11a84881df75e | |
parent | 9d913a62ad8f4bac575a53c362d9d10fd6175c8c (diff) | |
download | samba-1009ef3e37c82682e9c2c4c63bc7407420f20af8.tar.gz samba-1009ef3e37c82682e9c2c4c63bc7407420f20af8.tar.bz2 samba-1009ef3e37c82682e9c2c4c63bc7407420f20af8.zip |
Added Volkers "print server role" patch.
Jeremy.
(This used to be commit e81d72ac221023ded9e0932be7dd303ad5280665)
-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"); |