roles: Add ROLE_AUTO to indicate that the server role is calculated
authorAmitay Isaacs <amitay@gmail.com>
Tue, 8 Nov 2011 02:22:37 +0000 (13:22 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Nov 2011 23:34:08 +0000 (00:34 +0100)
libds/common/roles.h

index 0ebb8771ac149ae1cdca369e08b2e12c27a9fcc3..f6f04758ddec09350aabd85375f27bec5453d1a6 100644 (file)
@@ -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