1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

r18509: We must always canonicalise the usernames to be UPPERCASE DOMAIN,

lowercase username. We cache names as keys in this form, and we weren't
always returning this....
Jeremy.
This commit is contained in:
Jeremy Allison
2006-09-14 09:58:20 +00:00
committed by Gerald (Jerry) Carter
parent 8bb6e82f02
commit 205aa2b70d

View File

@ -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(),