r23601: BUG 4579: Don't mark the SAM domain on a Samba DC as an internal domain or...
[samba.git] / source3 / nsswitch / winbindd_util.c
index 83d915429f6dc51ea8b46f3240da32d2a8ebda3c..bf606c35c3a89c9225ae3b496de0c1f684a620d4 100644 (file)
@@ -82,6 +82,9 @@ static BOOL is_internal_domain(const DOM_SID *sid)
        if (sid == NULL)
                return False;
 
+       if ( IS_DC )
+               return sid_check_is_builtin(sid);
+
        return (sid_check_is_domain(sid) || sid_check_is_builtin(sid));
 }
 
@@ -90,6 +93,9 @@ static BOOL is_in_internal_domain(const DOM_SID *sid)
        if (sid == NULL)
                return False;
 
+       if ( IS_DC )
+               return sid_check_is_in_builtin(sid);
+
        return (sid_check_is_in_our_domain(sid) || sid_check_is_in_builtin(sid));
 }