mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
need to initialise global_myworkgroup
This commit is contained in:
parent
be697c9ef0
commit
501617307f
@ -418,10 +418,11 @@ BOOL pwdb_gethexpwd(const char *p, char *pwd)
|
||||
return strhex_to_str(pwd, 32, p) == 16;
|
||||
}
|
||||
|
||||
|
||||
/*************************************************************
|
||||
initialise password databases, domain names, domain sid.
|
||||
**************************************************************/
|
||||
BOOL pwdb_initialise(BOOL is_server)
|
||||
BOOL pwdb_init_myworkgroup(void)
|
||||
{
|
||||
fstrcpy(global_myworkgroup, lp_workgroup());
|
||||
|
||||
@ -430,9 +431,21 @@ BOOL pwdb_initialise(BOOL is_server)
|
||||
DEBUG(0,("ERROR: a workgroup name of * is no longer supported\n"));
|
||||
return False;
|
||||
}
|
||||
return True;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
initialise password databases, domain names, domain sid.
|
||||
**************************************************************/
|
||||
BOOL pwdb_initialise(BOOL is_server)
|
||||
{
|
||||
get_sam_domain_name();
|
||||
|
||||
if (!pwdb_init_myworkgroup())
|
||||
{
|
||||
return False;
|
||||
}
|
||||
|
||||
generate_wellknown_sids();
|
||||
|
||||
if (is_server)
|
||||
|
@ -677,6 +677,11 @@ static void usage(char *pname)
|
||||
|
||||
reload_services( True );
|
||||
|
||||
if (!pwdb_init_myworkgroup())
|
||||
{
|
||||
exit(1);
|
||||
}
|
||||
|
||||
set_samba_nb_type();
|
||||
|
||||
if (!is_daemon && !is_a_socket(0))
|
||||
|
Loading…
Reference in New Issue
Block a user