This makes the code internally consistant.
Andrew Bartlett
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
#include "lib/param/param_functions.c"
FN_GLOBAL_INTEGER(server_role, server_role)
-FN_GLOBAL_BOOL(domain_logons, domain_logons)
+static FN_GLOBAL_BOOL(domain_logons, domain_logons)
FN_GLOBAL_INTEGER(domain_master, domain_master)
FN_GLOBAL_LIST(smb_ports, smb_ports)
FN_GLOBAL_INTEGER(nbt_port, nbt_port)
bool lp_we_are_a_wins_server(void);
bool lp_wins_proxy(void);
bool lp_local_master(void);
-bool lp_domain_logons(void);
const char **lp_init_logon_delayed_hosts(void);
int lp_init_logon_delay(void);
bool lp_load_printers(void);
lastrun = t;
/* Do the "internet group" - <1c> names. */
- if (lp_domain_logons())
+ if (IS_DC)
add_logon_names();
/* Do the domain master names. */
}
ip = ((const struct sockaddr_in *)pss)->sin_addr;
- if (!lp_domain_logons()) {
+ if (!IS_DC) {
DEBUG(5,("process_logon_packet: Logon packet received from IP %s and domain \
logons are not enabled.\n", inet_ntoa(p->ip) ));
return;
FN_GLOBAL_BOOL(lp_we_are_a_wins_server, bWINSsupport)
FN_GLOBAL_BOOL(lp_wins_proxy, bWINSproxy)
FN_GLOBAL_BOOL(lp_local_master, bLocalMaster)
-FN_GLOBAL_BOOL(lp_domain_logons, bDomainLogons)
+static FN_GLOBAL_BOOL(lp_domain_logons, bDomainLogons)
FN_GLOBAL_LIST(lp_init_logon_delayed_hosts, szInitLogonDelayedHosts)
FN_GLOBAL_INTEGER(lp_init_logon_delay, InitLogonDelay)
FN_GLOBAL_BOOL(lp_load_printers, bLoadPrinters)
.dump = lp_dump,
.server_role = lp_server_role,
- .domain_logons = lp_domain_logons,
.domain_master = lp_domain_master,
.winbind_separator = lp_winbind_separator,