Fix bug #7743 - Inconsistent use of system name lookup can cause a domain joined...
commitd82d3346cf87dcce9f7d098bb975055e69473078
authorJeremy Allison <jra@samba.org>
Wed, 20 Oct 2010 18:22:57 +0000 (20 11:22 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sat, 5 Mar 2011 13:34:33 +0000 (5 14:34 +0100)
tree1e6860d2c7698a8735d62a08244a47413050909b
parentb2b9b999c8031fa8218e11a99eb5b67a42deb158
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)
source3/auth/auth_util.c
source3/lib/util.c
source3/passdb/pdb_interface.c
source3/passdb/pdb_smbpasswd.c
source3/passdb/util_unixsids.c
source3/smbd/password.c
source3/smbd/uid.c
source3/torture/pdbtest.c
source3/utils/net_sam.c
source3/web/cgi.c