summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-02-20 22:09:57 +0000
committerJeremy Allison <jra@samba.org>2003-02-20 22:09:57 +0000
commit1009ef3e37c82682e9c2c4c63bc7407420f20af8 (patch)
treecc0b8965af5fc67458b0a89c9ef11a84881df75e /source3/utils
parent9d913a62ad8f4bac575a53c362d9d10fd6175c8c (diff)
downloadsamba-1009ef3e37c82682e9c2c4c63bc7407420f20af8.tar.gz
samba-1009ef3e37c82682e9c2c4c63bc7407420f20af8.tar.bz2
samba-1009ef3e37c82682e9c2c4c63bc7407420f20af8.zip
Added Volkers "print server role" patch.
Jeremy. (This used to be commit e81d72ac221023ded9e0932be7dd303ad5280665)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/testparm.c22
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");