samr: don't block the sam sid or the builtin domain sid in sid_to_name
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Feb 2014 15:50:32 +0000 (16:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 25 Feb 2014 08:17:07 +0000 (09:17 +0100)
Previously only members of these domains were handled.
But we also need to handle the domain itself.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10463

Change-Id: I44f85267eda243d586fffd24a799e153de0ff982
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
Signed-off-by: Gregor Beck <gbeck@sernet.de>
Signed-off-by: Stefan Metzmacher <metze@sernet.de>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/winbindd/winbindd_samr.c

index 9f45126d5c5465c5b99eadc4046a094ee206beb5..e55043494239d6ff6afe80a0b32e852a5f96f37b 100644 (file)
@@ -684,7 +684,9 @@ static NTSTATUS sam_sid_to_name(struct winbindd_domain *domain,
 
        /* Paranoia check */
        if (!sid_check_is_in_builtin(sid) &&
+           !sid_check_is_builtin(sid) &&
            !sid_check_is_in_our_sam(sid) &&
+           !sid_check_is_our_sam(sid) &&
            !sid_check_is_in_unix_users(sid) &&
            !sid_check_is_unix_users(sid) &&
            !sid_check_is_in_unix_groups(sid) &&