summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-29 12:52:27 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-29 12:52:27 +0000
commit0ddfa38e8dd04947487be39614ccf23043e4d739 (patch)
tree5564dbab101c11291929c4a3a904e354222d0ecd /source3
parent1ea873e0a07ed146ccfa61acd746de85df9ffb97 (diff)
downloadsamba-0ddfa38e8dd04947487be39614ccf23043e4d739.tar.gz
samba-0ddfa38e8dd04947487be39614ccf23043e4d739.tar.bz2
samba-0ddfa38e8dd04947487be39614ccf23043e4d739.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/samsync.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/source3/rpcclient/samsync.c b/source3/rpcclient/samsync.c
index e20322cbc5..938a843d15 100644
--- a/source3/rpcclient/samsync.c
+++ b/source3/rpcclient/samsync.c
@@ -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);