size_t num_alias_rids = 0;
int i;
struct auth_SidAttr *groupSIDs = NULL;
- unsigned int num_groupSIDs = 0;
+ uint32_t num_groupSIDs = 0;
char *filter;
NTSTATUS status;
const char *sid_dn;
DATA_BLOB primary_group_blob;
/* SID structures for the expanded group memberships */
struct auth_SidAttr *sids = NULL;
- unsigned int num_sids = 0, i;
+ uint32_t num_sids = 0;
+ unsigned int i;
struct dom_sid *domain_sid;
TALLOC_CTX *tmp_ctx;
struct ldb_message_element *el;
{
struct auth_session_info *session_info;
NTSTATUS nt_status;
- unsigned int i, num_sids = 0;
+ uint32_t i, num_sids = 0;
const char *filter;
/* This function tests if a SID structure "sids" contains the SID "sid" */
static bool sids_contains_sid(const struct auth_SidAttr *sids,
- const unsigned int num_sids,
+ const uint32_t num_sids,
const struct dom_sid *sid,
uint32_t attrs)
{
NTSTATUS dsdb_expand_nested_groups(struct ldb_context *sam_ctx,
struct ldb_val *dn_val, const bool only_childs, const char *filter,
TALLOC_CTX *res_sids_ctx, struct auth_SidAttr **res_sids,
- unsigned int *num_res_sids)
+ uint32_t *num_res_sids)
{
const char * const attrs[] = { "groupType", "memberOf", NULL };
unsigned int i;
static int get_group_sids(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
struct ldb_message *msg, const char *attribute_string,
enum search_type type, struct auth_SidAttr **groupSIDs,
- unsigned int *num_groupSIDs)
+ uint32_t *num_groupSIDs)
{
const char *filter = NULL;
NTSTATUS status;
{
struct ldb_context *ldb = ldb_module_get_ctx(module);
TALLOC_CTX *tmp_ctx = talloc_new(msg);
- unsigned int i;
+ uint32_t i;
int ret;
struct auth_SidAttr *groupSIDs = NULL;
- unsigned int num_groupSIDs = 0;
+ uint32_t num_groupSIDs = 0;
if (scope != LDB_SCOPE_BASE) {
ldb_set_errstring(ldb, "Cannot provide tokenGroups attribute, this is not a BASE search");
{
bool pso_supported;
struct auth_SidAttr *groupSIDs = NULL;
- unsigned int num_groupSIDs = 0;
+ uint32_t num_groupSIDs = 0;
struct ldb_context *ldb = ldb_module_get_ctx(module);
struct ldb_message *best_pso = NULL;
struct ldb_dn *pso_dn = NULL;