Lines Matching defs:gi
66 struct group_info *gi)
71 gi->memberofs = talloc_array(gi, const char *, el->num_values+1);
72 if (gi->memberofs == NULL) {
77 dn = ldb_dn_from_ldb_val(gi, ldb, &(el->values[i]));
78 gi->memberofs[i] = talloc_strdup(gi, rdn_as_string(gi, dn));
80 if (gi->memberofs[i] == NULL) {
83 DEBUG(SSSDBG_TRACE_FUNC, "memberof value: %s\n", gi->memberofs[i]);
85 gi->memberofs[el->num_values] = NULL;
213 struct group_info *gi = NULL;
219 gi = talloc_zero(mem_ctx, struct group_info);
220 if (!gi) {
226 gi->name = talloc_strdup(gi,
230 gi->gid = ldb_msg_find_attr_as_uint64(msg,
232 if (gi->gid == 0 || gi->name == NULL) {
241 ret = parse_members(gi, ldb, domain, el,
243 &gi->user_members,
248 if (gi->user_members == NULL) {
251 for (count = 0; gi->user_members[count]; count++) ;
256 ret = parse_members(gi, ldb, domain, el,
267 gi->user_members = talloc_realloc(gi, gi->user_members,
270 if (gi->user_members == NULL) {
275 gi->user_members[i] = talloc_steal(gi->user_members,
278 gi->user_members[i] = NULL;
287 ret = parse_memberofs(ldb, el, gi);
293 *info = gi;
296 talloc_zfree(gi);