Revert "s3-winbind: Fix paranoia checks in winbindd_samr.c."
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Jun 2011 16:40:04 +0000 (18:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 16 Jun 2011 16:41:01 +0000 (18:41 +0200)
This reverts commit 207a84d725b905c2b119d2ef0f4f4d4eb391140d.

This is the wrong fix for the problem, see bug #8215.

metze

source3/winbindd/winbindd_samr.c

index 48ce92d5e706bb14d10ebf537e07f065f56dcf93..3b9377f7299f82614817952ad01a37bb1ae95fc2 100644 (file)
@@ -762,8 +762,8 @@ static NTSTATUS sam_rids_to_names(struct winbindd_domain *domain,
        ZERO_STRUCT(lsa_policy);
 
        /* Paranoia check */
-       if (!sid_check_is_in_builtin(domain_sid) &&
-           !sid_check_is_in_our_domain(domain_sid) &&
+       if (!sid_check_is_builtin(domain_sid) &&
+           !sid_check_is_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)) {