summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-05-20 15:42:46 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-06-15 09:56:01 +0200
commit207a84d725b905c2b119d2ef0f4f4d4eb391140d (patch)
tree0ed3c7974d67828c8bf0024b7df9cca143d5f55d /source3
parent8c14decdb8cbc5622d7cf9804bef857d0538ede0 (diff)
downloadsamba-207a84d725b905c2b119d2ef0f4f4d4eb391140d.tar.gz
samba-207a84d725b905c2b119d2ef0f4f4d4eb391140d.tar.bz2
samba-207a84d725b905c2b119d2ef0f4f4d4eb391140d.zip
s3-winbind: Fix paranoia checks in winbindd_samr.c.
This fixes looking up the correct unix user instead of allocation a new uid and creating it. Fix bug #8215 (winbind unix username lookup doesn't work correctly). (cherry picked from commit 531edfdd1924bfb2ef486820f7f5787098bd953a) Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Jun 15 09:56:01 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_samr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_samr.c b/source3/winbindd/winbindd_samr.c
index 3b9377f729..48ce92d5e7 100644
--- a/source3/winbindd/winbindd_samr.c
+++ b/source3/winbindd/winbindd_samr.c
@@ -762,8 +762,8 @@ static NTSTATUS sam_rids_to_names(struct winbindd_domain *domain,
ZERO_STRUCT(lsa_policy);
/* Paranoia check */
- if (!sid_check_is_builtin(domain_sid) &&
- !sid_check_is_domain(domain_sid) &&
+ if (!sid_check_is_in_builtin(domain_sid) &&
+ !sid_check_is_in_our_domain(domain_sid) &&
!sid_check_is_unix_users(domain_sid) &&
!sid_check_is_unix_groups(domain_sid) &&
!sid_check_is_in_wellknown_domain(domain_sid)) {