Lines Matching defs:grp
3921 static int mbof_add_memuid(struct mbof_member *grp, const char *user);
4067 struct mbof_member *grp;
4091 grp = talloc_zero(ctx, struct mbof_member);
4092 if (!grp) {
4097 grp->status = MBOF_GROUP_TO_DO;
4098 grp->dn = talloc_steal(grp, ares->message->dn);
4099 grp->name = ldb_msg_find_attr_as_string(ares->message, DB_NAME, NULL);
4102 grp->name = talloc_steal(grp, name);
4106 grp->orig_has_memberof = true;
4110 grp->orig_has_memberuid = true;
4113 ret = mbof_steal_msg_el(grp, DB_MEMBER,
4114 ares->message, &grp->orig_members);
4120 DLIST_ADD(ctx->group_list, grp);
4123 key.str = discard_const(ldb_dn_get_linearized(grp->dn));
4125 value.ptr = grp;
4212 grp = ctx->group_list;
4216 DLIST_DEMOTE(ctx->group_list, grp, struct mbof_member *);
4217 grp->status = MBOF_GROUP_DONE;
4220 if (!grp->members) {
4223 for (i = 0; grp->members[i]; i++) {
4224 ret = mbof_member_update(ctx, grp, grp->members[i]);
4365 static int mbof_add_memuid(struct mbof_member *grp, const char *user)
4370 if (!grp->memuids) {
4371 grp->memuids = talloc_zero(grp, struct ldb_message_element);
4372 if (!grp->memuids) {
4376 grp->memuids->name = talloc_strdup(grp->memuids, DB_MEMBERUID);
4377 if (!grp->memuids->name) {
4382 n = grp->memuids->num_values;
4383 vals = talloc_realloc(grp->memuids,
4384 grp->memuids->values,
4393 grp->memuids->values = vals;
4394 grp->memuids->num_values = n + 1;