winbind: Remove find_builtin_domain helper function
[samba.git] / source3 / winbindd / wb_gettoken.c
index 1386c7d8d3fe8a22bb3ad48255d96d10a1657703..1c99121bb0906e6c5c2c31c7d14c5dc9caf0fb88 100644 (file)
@@ -159,7 +159,7 @@ static void wb_gettoken_gotlocalgroups(struct tevent_req *subreq)
         * Now expand the builtin groups
         */
 
-       domain = find_builtin_domain();
+       domain = find_domain_from_sid(&global_sid_Builtin);
        if (domain == NULL) {
                tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR);
                return;