mirror of
https://github.com/samba-team/samba.git
synced 2025-02-22 05:57:43 +03:00
We don't need this silly unix username stuff. NT username is basicly unused,
and must == unix username for sane implementation in passdb. Andrew Bartlett (This used to be commit 412c791980de7f88a926b2f9ed361f0f882594c8)
This commit is contained in:
parent
1ea873e0a0
commit
0ddfa38e8d
@ -268,6 +268,9 @@ static void sam_account_from_delta(SAM_ACCOUNT *account,
|
||||
unistr2_to_ascii(s, &delta->uni_acct_name, sizeof(s) - 1);
|
||||
pdb_set_nt_username(account, s);
|
||||
|
||||
/* Unix username is the same - for sainity */
|
||||
pdb_set_username(account, s);
|
||||
|
||||
unistr2_to_ascii(s, &delta->uni_full_name, sizeof(s) - 1);
|
||||
pdb_set_fullname(account, s);
|
||||
|
||||
@ -289,19 +292,6 @@ static void sam_account_from_delta(SAM_ACCOUNT *account,
|
||||
unistr2_to_ascii(s, &delta->uni_profile, sizeof(s) - 1);
|
||||
pdb_set_profile_path(account, s, True);
|
||||
|
||||
/* Set Unix username to be winbindd username */
|
||||
|
||||
{
|
||||
char *unix_username;
|
||||
|
||||
asprintf(&unix_username, "%s%s%s", lp_workgroup(),
|
||||
lp_winbind_separator(), pdb_get_nt_username(account));
|
||||
|
||||
pdb_set_username(account, unix_username);
|
||||
|
||||
SAFE_FREE(unix_username);
|
||||
}
|
||||
|
||||
/* User and group sid */
|
||||
|
||||
sid_copy(&sid, &domain_sid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user