summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-20 11:22:57 -0700
committerKarolin Seeger <kseeger@samba.org>2011-03-05 14:34:33 +0100
commitd82d3346cf87dcce9f7d098bb975055e69473078 (patch)
tree1e6860d2c7698a8735d62a08244a47413050909b /source3/lib
parentb2b9b999c8031fa8218e11a99eb5b67a42deb158 (diff)
downloadsamba-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.c2
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);