1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

check server role before doing nt user to unix user mapping

(This used to be commit 9d4e810e7d)
This commit is contained in:
Luke Leighton 1998-12-01 22:39:33 +00:00
parent 5dd26daad5
commit 08cdea519c

View File

@ -73,6 +73,8 @@ static void map_nt_and_unix_username(const char *domain, char *user)
* function.
*/
if (lp_server_role() != ROLE_DOMAIN_NONE)
{
memset(nt_username, 0, sizeof(nt_username));
if (domain != NULL)
{
@ -88,6 +90,7 @@ static void map_nt_and_unix_username(const char *domain, char *user)
{
fstrcpy(user, gmep.unix_name);
}
}
/*
* Pass the user through the unix -> unix user mapping