mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:param Add helper function to get at Gobals.iDomainMaster
This is needed for a future split out of the server_role code. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
458b2484c7
commit
6d2e796f35
@ -4283,6 +4283,7 @@ struct share_params *snum2params_static(int snum);
|
|||||||
const char *volume_label(int snum);
|
const char *volume_label(int snum);
|
||||||
int lp_server_role(void);
|
int lp_server_role(void);
|
||||||
bool lp_domain_master(void);
|
bool lp_domain_master(void);
|
||||||
|
bool lp_domain_master_true_or_auto(void);
|
||||||
bool lp_preferred_master(void);
|
bool lp_preferred_master(void);
|
||||||
void lp_remove_service(int snum);
|
void lp_remove_service(int snum);
|
||||||
void lp_copy_service(int snum, const char *new_name);
|
void lp_copy_service(int snum, const char *new_name);
|
||||||
|
@ -9690,6 +9690,18 @@ bool lp_domain_master(void)
|
|||||||
return (bool)Globals.iDomainMaster;
|
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
|
If we are DMB then prefer us as LMB
|
||||||
************************************************************/
|
************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user