1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

wrap pdb_enum_group_mapping() in [un]become_root() so LDAP queries can get the credentials from secrets.tdb

(This used to be commit bb8b63b865)
This commit is contained in:
Gerald Carter 2003-04-22 03:15:32 +00:00
parent 3996f116c7
commit 6f99b229db

View File

@ -300,11 +300,16 @@ static NTSTATUS load_group_domain_entries(struct samr_info *info, DOM_SID *sid)
DEBUG(10,("load_group_domain_entries: already in memory\n"));
return NT_STATUS_OK;
}
become_root();
if (!pdb_enum_group_mapping(SID_NAME_DOM_GRP, &map, (int *)&group_entries, ENUM_ONLY_MAPPED, MAPPING_WITHOUT_PRIV)) {
DEBUG(1, ("load_group_domain_entries: pdb_enum_group_mapping() failed!\n"));
return NT_STATUS_NO_MEMORY;
}
unbecome_root();
info->disp_info.num_group_account=group_entries;