diff options
-rw-r--r-- | source3/nsswitch/winbindd_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c index cb1a810541..a99115690d 100644 --- a/source3/nsswitch/winbindd_util.c +++ b/source3/nsswitch/winbindd_util.c @@ -886,7 +886,8 @@ BOOL parse_domain_user_talloc(TALLOC_CTX *mem_ctx, const char *domuser, Also, if omit DOMAIN if 'winbind trusted domains only = true', as the username is then unqualified in unix - + + We always canonicalize as UPPERCASE DOMAIN, lowercase username. */ void fill_domain_username(fstring name, const char *domain, const char *user, BOOL can_assume) { @@ -896,7 +897,7 @@ void fill_domain_username(fstring name, const char *domain, const char *user, BO strlower_m(tmp_user); if (can_assume && assume_domain(domain)) { - strlcpy(name, user, sizeof(fstring)); + strlcpy(name, tmp_user, sizeof(fstring)); } else { slprintf(name, sizeof(fstring) - 1, "%s%c%s", domain, *lp_winbind_separator(), |