summaryrefslogtreecommitdiff
path: root/libds
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-11-08 13:22:37 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-11-17 00:34:08 +0100
commit299ed456705944c0b6f848d4fce1fbf6853df965 (patch)
treed8165f069d4bdcaff1e083064cf19071dcd0ed11 /libds
parentd97acc8fb9710c41c9758801af1e79c38f9ffdcc (diff)
downloadsamba-299ed456705944c0b6f848d4fce1fbf6853df965.tar.gz
samba-299ed456705944c0b6f848d4fce1fbf6853df965.tar.bz2
samba-299ed456705944c0b6f848d4fce1fbf6853df965.zip
roles: Add ROLE_AUTO to indicate that the server role is calculated
Diffstat (limited to 'libds')
-rw-r--r--libds/common/roles.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libds/common/roles.h b/libds/common/roles.h
index 0ebb8771ac..f6f04758dd 100644
--- a/libds/common/roles.h
+++ b/libds/common/roles.h
@@ -29,7 +29,10 @@ enum server_role {
ROLE_STANDALONE = 0,
ROLE_DOMAIN_MEMBER = 1,
ROLE_DOMAIN_BDC = 2,
- ROLE_DOMAIN_PDC = 3
+ ROLE_DOMAIN_PDC = 3,
+
+ /* To determine the role automatically, this is not a valid role */
+ ROLE_AUTO = 100
};
/* keep compatibility with the s4 'ROLE_DOMAIN_CONTROLLER' by mapping