+BOOL security_token_has_sid_string(struct security_token *token, const char *sid_string)
+{
+ BOOL ret;
+ struct dom_sid *sid = dom_sid_parse_talloc(token, sid_string);
+ if (!sid) return False;
+
+ ret = security_token_has_sid(token, sid);
+
+ talloc_free(sid);
+ return ret;
+}
+
+BOOL security_token_has_builtin_administrators(struct security_token *token)
+{
+ return security_token_has_sid_string(token, SID_BUILTIN_ADMINISTRATORS);
+}
+
+BOOL security_token_has_nt_authenticated_users(struct security_token *token)
+{
+ return security_token_has_sid_string(token, SID_NT_AUTHENTICATED_USERS);
+}