mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:lib: remove supefluous comments from map_my_name()
cleanup after moving Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
6eaf40f5a4
commit
d67d8e194b
@ -175,17 +175,12 @@ const char *get_global_sam_name(void)
|
|||||||
/******************************************************************
|
/******************************************************************
|
||||||
Get the default domain/netbios name to be used when
|
Get the default domain/netbios name to be used when
|
||||||
testing authentication.
|
testing authentication.
|
||||||
|
|
||||||
LEGACY: this function provides the legacy domain mapping used with
|
|
||||||
the lp_map_untrusted_to_domain() parameter
|
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
const char *my_sam_name(void)
|
const char *my_sam_name(void)
|
||||||
{
|
{
|
||||||
/* Standalone servers can only use the local netbios name */
|
|
||||||
if (lp_server_role() == ROLE_STANDALONE)
|
if (lp_server_role() == ROLE_STANDALONE)
|
||||||
return lp_netbios_name();
|
return lp_netbios_name();
|
||||||
|
|
||||||
/* Default to the DOMAIN name when not specified */
|
|
||||||
return lp_workgroup();
|
return lp_workgroup();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user