diff options
author | Andreas Schneider <asn@samba.org> | 2011-05-20 15:42:46 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-06-15 09:56:01 +0200 |
commit | 207a84d725b905c2b119d2ef0f4f4d4eb391140d (patch) | |
tree | 0ed3c7974d67828c8bf0024b7df9cca143d5f55d | |
parent | 8c14decdb8cbc5622d7cf9804bef857d0538ede0 (diff) | |
download | samba-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
-rw-r--r-- | source3/winbindd/winbindd_samr.c | 4 |
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)) { |