summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-09-14 13:46:42 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-09-14 13:46:42 -0700
commit9098fc70e0ca0145acfccb928b8749fb6d5497a5 (patch)
treea564cfa18fbeab278998aa6eb826b4f2fb98b37b /ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
parent09baba59e5b457efe8e0f44fc8cc7bc850ddb50c (diff)
downloadds-9098fc70e0ca0145acfccb928b8749fb6d5497a5.tar.gz
ds-9098fc70e0ca0145acfccb928b8749fb6d5497a5.tar.xz
ds-9098fc70e0ca0145acfccb928b8749fb6d5497a5.zip
Bug 631862 - crash - delete entries not in cache + referint
https://bugzilla.redhat.com/show_bug.cgi?id=631862 Resolves: bug 631862 Bug Description: crash - delete entries not in cache + referint Reviewed by: rmeggins and nhosoi Branch: master Fix Description: When deleting an entry, the referential integrity (referint) plugin does an internal search to find references to this entry (e.g. in group entries) and removes them. The search code wants to ensure that the entrydn attribute is present in the entry when using entryrdn (subtree rename). The search code sets a flag to tell the id2entry code to add the entrydn attribute if it is not present. However, it was doing this to an entry in the cache, which may be in use by another thread. The solution is to add the entrydn attribute before adding the entry to the cache. In the id2entry code, this is after the entry has been read from the id2entry db successfully, but before the entry is added to the cache. In the LDAP ADD code, this is done when the other computed operational attributes are added to the new entry. In addition to the above fix by rmeggins@redhat.com, following changes are made: 1) entrydn attribute is always added to the entry in memory before putting it in the entry cache, and the attribute is removed before writing the entry to the database. 2) eliminating id2entry_ext, which was introduced to pass flags, but it is no longer needed since only a flag ID2ENTRY_ADD_ENTRYDN was removed. Platforms tested: RHEL5 x86_64 Flag Day: no Doc impact: no
Diffstat (limited to 'ldap/servers/slapd/back-ldbm/proto-back-ldbm.h')
-rw-r--r--ldap/servers/slapd/back-ldbm/proto-back-ldbm.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
index 363bec27..00344c69 100644
--- a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
+++ b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
@@ -217,8 +217,6 @@ int id2entry_add( backend *be, struct backentry *e, back_txn *txn );
int id2entry_add_ext( backend *be, struct backentry *e, back_txn *txn, int encrypt );
int id2entry_delete( backend *be, struct backentry *e, back_txn *txn );
struct backentry * id2entry( backend *be, ID id, back_txn *txn, int *err );
-struct backentry * id2entry_ext( backend *be, ID id, back_txn *txn, int *err, int flags );
-
/*
* idl.c