This is needed for a future split out of the server_role code.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
const char *volume_label(int snum);
int lp_server_role(void);
bool lp_domain_master(void);
+bool lp_domain_master_true_or_auto(void);
bool lp_preferred_master(void);
void lp_remove_service(int snum);
void lp_copy_service(int snum, const char *new_name);
return (bool)Globals.iDomainMaster;
}
+/***********************************************************
+ If we are PDC then prefer us as DMB
+************************************************************/
+
+bool lp_domain_master_true_or_auto(void)
+{
+ if (Globals.iDomainMaster) /* auto or yes */
+ return true;
+
+ return false;
+}
+
/***********************************************************
If we are DMB then prefer us as LMB
************************************************************/