diff options
author | Jeremy Allison <jra@samba.org> | 2010-10-20 11:22:57 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-03-05 14:34:33 +0100 |
commit | d82d3346cf87dcce9f7d098bb975055e69473078 (patch) | |
tree | 1e6860d2c7698a8735d62a08244a47413050909b /source3/lib | |
parent | b2b9b999c8031fa8218e11a99eb5b67a42deb158 (diff) | |
download | samba-d82d3346cf87dcce9f7d098bb975055e69473078.tar.gz |
Fix bug #7743 - Inconsistent use of system name lookup can cause a domain joined machine to fail to find users.
Ensure all username lookups go through Get_Pwnam_alloc(), which is the
correct wrapper function. We were using it *some* of the time anyway,
so this just makes us properly consistent.
Jeremy.
(cherry picked from commit 6e9d95f753b2b127268f1eb9a40d601002484bd1)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 50aa4b0cbc4..fad6c7aa42f 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1407,7 +1407,7 @@ uid_t nametouid(const char *name) char *p; uid_t u; - pass = getpwnam_alloc(talloc_autofree_context(), name); + pass = Get_Pwnam_alloc(talloc_autofree_context(), name); if (pass) { u = pass->pw_uid; TALLOC_FREE(pass); |