Lines Matching refs:entry
70 struct ldb_message *entry;
100 struct ldb_message *entry;
112 struct ldb_message *entry;
157 struct ldb_message *entry;
196 static int entry_has_objectclass(struct ldb_message *entry,
203 el = ldb_msg_find_element(entry, DB_OC);
218 static int entry_is_user_object(struct ldb_message *entry)
220 return entry_has_objectclass(entry, DB_USER_CLASS);
223 static int entry_is_group_object(struct ldb_message *entry)
225 return entry_has_objectclass(entry, DB_GROUP_CLASS);
334 * looked up so there is no real user entry with member/memberof links.
341 * plugin - in contrast, the ghost attribute is added to the entry that "owns"
389 struct ldb_message *entry,
402 ret = entry_is_group_object(entry);
449 struct ldb_message *entry,
697 if (addop->entry != NULL) {
701 /* more than one entry per DN!? DB corrupted? */
706 addop->entry = talloc_steal(addop, ares->message);
707 if (addop->entry == NULL) {
719 if (addop->entry == NULL) {
765 * add memberof attribute to this entry
799 /* create new parent set for this entry */
810 el = ldb_msg_find_element(addop->entry, DB_MEMBEROF);
842 talloc_free(addop->entry);
843 addop->entry = NULL;
852 /* that was the last entry, get out */
863 el = ldb_msg_find_element(addop->entry, DB_MEMBER);
885 /* check if we need to store memberuid ops for this entry */
886 ret = entry_is_user_object(addop->entry);
890 name = ldb_msg_find_attr_as_string(addop->entry, DB_NAME, NULL);
917 ret = mbof_add_fill_ghop(add_ctx, addop->entry, parents);
922 /* we are done with the entry now */
923 talloc_free(addop->entry);
924 addop->entry = NULL;
926 /* add memberof to entry */
965 struct ldb_message *entry,
970 ghel = ldb_msg_find_element(entry, DB_GHOST);
976 return mbof_add_fill_ghop_ex(add_ctx, entry, parents,
1234 * entry of the object this operation is about.
1246 * Finally for each entry in this provisional new memberof list we add all its
1252 * can proceed to modify the entry.
1254 * Once the entry has been modified we proceed again to check if there are any
1255 * children of this entry (the entry has "member"s).
1257 * entry memberof list and the new memberof list we just stored back in the
1268 * a memberof field from a user entry. Also if the original entry had a ghost
1303 struct ldb_message *entry);
1305 struct ldb_message *entry);
1348 /* create first entry */
1349 /* the first entry is the parent of all entries and the one where we remove
1427 if (first->entry != NULL) {
1428 /* more than one entry per DN!? DB corrupted? */
1433 first->entry = talloc_steal(first, msg);
1434 if (first->entry == NULL) {
1460 if (first->entry == NULL) {
1463 "Target entry (%s) not found",
1538 ret = mbof_del_fill_muop(del_ctx, del_ctx->first->entry);
1545 ret = mbof_del_fill_ghop(del_ctx, del_ctx->first->entry);
1554 else if (ldb_msg_find_element(del_ctx->first->entry, DB_MEMBER)) {
1669 if (ldb_msg_find_element(first->entry, DB_MEMBER)) {
1712 el = ldb_msg_find_element(first->entry, DB_MEMBER);
1778 /* load entry */
1842 if (delop->entry != NULL) {
1846 /* more than one entry per DN!? DB corrupted? */
1851 delop->entry = talloc_steal(delop, msg);
1852 if (delop->entry == NULL) {
1878 if (delop->entry == NULL) {
1884 /* ok process the entry */
1915 * equal to the number of objects that have this entry as
1925 /* no entries at all, entry ended up being orphaned */
1926 /* skip to directly set the new memberof list for this entry */
2012 if (anc_ctx->entry != NULL) {
2015 ldb_dn_get_linearized(anc_ctx->entry->dn));
2016 /* more than one entry per DN!? DB corrupted? */
2021 anc_ctx->entry = talloc_steal(anc_ctx, msg);
2022 if (anc_ctx->entry == NULL) {
2032 if (anc_ctx->entry == NULL) {
2038 /* check entry */
2039 el = ldb_msg_find_element(anc_ctx->entry, DB_MEMBEROF);
2058 /* do not re-add the original deleted entry by mistake */
2077 talloc_free(anc_ctx->entry);
2078 anc_ctx->entry = NULL;
2086 /* ok, end of the story, proceed to modify the entry */
2124 ret = entry_is_user_object(delop->entry);
2142 * the ones that will survive in the entry */
2143 el = ldb_msg_find_element(delop->entry, DB_MEMBEROF);
2157 /* skip the deleted entry if this is a delete op */
2169 /* change memberof on entry */
2200 /* compare the entry's original memberof list with the new
2201 * one and for each missing entry add a memberuid removal
2229 name = ldb_msg_find_attr_as_string(delop->entry, DB_NAME, NULL);
2286 ldb_debug(ldb, LDB_DEBUG_TRACE, "Got an entry on a non search op?!");
2327 /* now verify if this entry is a group and members need to be processed as
2330 el = ldb_msg_find_element(delop->entry, DB_MEMBER);
2347 /* finally find the next entry to handle */
2436 struct ldb_message *entry)
2443 el = ldb_msg_find_element(entry, DB_MEMBEROF);
2449 ret = entry_is_user_object(entry);
2465 ldb_msg_find_attr_as_string(entry, DB_NAME, NULL));
2498 struct ldb_message *entry,
2507 mbof = ldb_msg_find_element(entry, DB_MEMBEROF);
2513 ret = entry_is_group_object(entry);
2567 struct ldb_message *entry)
2571 ghel = ldb_msg_find_element(entry, DB_GHOST);
2577 return mbof_del_fill_ghop_ex(del_ctx, entry,
2742 /* We must treat no such attribute as non-fatal b/c the entry
2796 talloc_zfree(delop->entry);
2840 struct ldb_message *entry,
2845 struct ldb_message *entry,
2929 * must check first what's on the entry */
2969 if (mod_ctx->entry != NULL) {
2973 /* more than one entry per DN!? DB corrupted? */
2978 mod_ctx->entry = talloc_steal(mod_ctx, ares->message);
2979 if (mod_ctx->entry == NULL) {
2989 if (mod_ctx->entry == NULL) {
3013 member = ldb_msg_find_element(mod_ctx->entry, DB_MEMBER);
3055 dn = ldb_dn_get_linearized(igh->mod_ctx->entry->dn);
3270 /* add back the inherited children to entry */
3274 msg->dn = mod_ctx->entry->dn;
3390 ret = mbof_mod_process_membel(mod_ctx, ldb, mod_ctx->entry, mod_ctx->membel,
3396 ret = mbof_mod_process_ghel(mod_ctx, mod_ctx->entry, mod_ctx->ghel,
3425 struct ldb_message *entry,
3452 el = ldb_msg_find_element(entry, DB_MEMBER);
3471 el = ldb_msg_find_element(entry, DB_MEMBER);
3523 struct ldb_message *entry,
3539 el = ldb_msg_find_element(entry, DB_MEMBEROF);
3555 el = ldb_msg_find_element(entry, DB_GHOST);
3572 el = ldb_msg_find_element(entry, DB_GHOST);
3646 el = ldb_msg_find_element(mod_ctx->entry, DB_MEMBEROF);
3663 ret = mbof_add_fill_ghop_ex(add_ctx, mod_ctx->entry,
3677 parents->dns[parents->num] = mod_ctx->entry->dn;
3712 /* create first entry */
3713 /* the first entry is the parent of all entries and the one where we
3728 first->entry = mod_ctx->entry;
3729 first->entry_dn = mod_ctx->entry->dn;
3732 ret = mbof_del_fill_ghop_ex(del_ctx, del_ctx->first->entry,
4190 " entry!", key.str);
4413 /* take the next entry and remove it from the list */
4418 /* take the next entry and remove it from the list */
4531 ldb_debug(ldb, LDB_DEBUG_TRACE, "Got an entry on a non search op?!");