mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
param: make 'winbind max domain connections' a generated function.
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
78e276a35d
commit
496f275a4b
@ -1,7 +1,7 @@
|
||||
<samba:parameter name="winbind max domain connections"
|
||||
context="G"
|
||||
type="integer"
|
||||
generated_function="0"
|
||||
function="_winbind_max_domain_connections"
|
||||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||
<description>
|
||||
<para>This parameter specifies the maximum number of simultaneous
|
||||
|
@ -251,8 +251,7 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
|
||||
int CupsEncrypt; \
|
||||
char *szIdmapUID; \
|
||||
char *szIdmapGID; \
|
||||
char *szIdmapBackend; \
|
||||
int _winbind_max_domain_connections;
|
||||
char *szIdmapBackend;
|
||||
|
||||
const char* server_role_str(uint32_t role);
|
||||
int lp_find_server_role(int server_role, int security, int domain_logons, int domain_master);
|
||||
|
@ -1019,18 +1019,15 @@ char *lp_ ## fn_name(TALLOC_CTX *ctx,int i) {return(lp_string((ctx), (LP_SNUM_OK
|
||||
#define FN_LOCAL_PARM_CHAR(fn_name,val) \
|
||||
char lp_ ## fn_name(const struct share_params *p) {return(LP_SNUM_OK(p->service)? ServicePtrs[(p->service)]->val : sDefault.val);}
|
||||
|
||||
static FN_GLOBAL_INTEGER(winbind_max_domain_connections_int,
|
||||
_winbind_max_domain_connections)
|
||||
|
||||
int lp_winbind_max_domain_connections(void)
|
||||
{
|
||||
if (lp_winbind_offline_logon() &&
|
||||
lp_winbind_max_domain_connections_int() > 1) {
|
||||
lp__winbind_max_domain_connections() > 1) {
|
||||
DEBUG(1, ("offline logons active, restricting max domain "
|
||||
"connections to 1\n"));
|
||||
return 1;
|
||||
}
|
||||
return MAX(1, lp_winbind_max_domain_connections_int());
|
||||
return MAX(1, lp__winbind_max_domain_connections());
|
||||
}
|
||||
|
||||
int lp_cups_encrypt(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user