Issue 3385 - suffix delete does not work for back-bdb/hdb
Summary: suffix delete does not work for back-bdb/hdb
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-09 10:03 UTC by ando@openldap.org
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ando@openldap.org 2004-11-09 10:03:43 UTC
Full_Name: Pierangelo Masarati
Version: HEAD / RE22
OS: Linux (irrelevant?)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (131.175.154.56)


The deletion of the entry corresponding to the suffix of a database fails with
"Operation not allowed on nonleaf (66)" when bdb/hdb  is used, I suspect because
the "cn=syncrepl,<suffix>" entry is defined, although hidden.

It works fine, for instance, when back-ldbm is used.

p.

Comment 1 Howard Chu 2004-11-09 10:50:34 UTC
ando@sys-net.it wrote:

>Full_Name: Pierangelo Masarati
>Version: HEAD / RE22
>OS: Linux (irrelevant?)
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (131.175.154.56)
>
>
>The deletion of the entry corresponding to the suffix of a database fails with
>"Operation not allowed on nonleaf (66)" when bdb/hdb  is used, I suspect because
>the "cn=syncrepl,<suffix>" entry is defined, although hidden.
>
>It works fine, for instance, when back-ldbm is used.
>
Interesting. This suggests to me that the CSN context should just be an 
operational attribute attached to the root/suffix entry of the database. 
That would also save a lot of nonsense with creating the context entry 
and other such stuff. I'll try this approach in my overlay...

-- 
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

Comment 2 ando@openldap.org 2004-11-09 12:02:37 UTC
> Interesting. This suggests to me that the CSN context should just be an
> operational attribute attached to the root/suffix entry of the database.
> That would also save a lot of nonsense with creating the context entry
> and other such stuff. I'll try this approach in my overlay...

That's not a big deal for me, I was just playing with "ldapdelete -r". 
However, I think this part should really need to be reworked, syncprov or
not.

p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497

Comment 3 Howard Chu 2004-11-09 12:37:11 UTC
Pierangelo Masarati wrote:

>>Interesting. This suggests to me that the CSN context should just be an
>>operational attribute attached to the root/suffix entry of the database.
>>That would also save a lot of nonsense with creating the context entry
>>and other such stuff. I'll try this approach in my overlay...
>>    
>>
>
>That's not a big deal for me, I was just playing with "ldapdelete -r". 
>However, I think this part should really need to be reworked, syncprov or
>not.
>
Ah right. The ldapdelete code needs to use a search that includes 
subentries, i.e., add a subentries control with visibility True.

-- 
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

Comment 4 ando@openldap.org 2004-11-10 08:31:14 UTC
changed notes
changed state Open to Test
Comment 5 ando@openldap.org 2004-11-10 08:31:47 UTC
changed notes
moved from Incoming to Software Bugs
Comment 6 ando@openldap.org 2004-11-16 11:49:38 UTC
> Ah right. The ldapdelete code needs to use a search that includes
> subentries, i.e., add a subentries control with visibility True.

Works for me.  Thanks, p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497

Comment 7 ando@openldap.org 2004-12-03 07:45:17 UTC
changed state Test to Release
Comment 8 Kurt Zeilenga 2005-03-15 01:02:52 UTC
Note that subentries control of TRUE means to ONLY return subentries.
You seem to want a control which requests all entries and subentries
be returned.  That beast doesn't exist.
Comment 9 Howard Chu 2005-03-15 01:51:34 UTC
Kurt Zeilenga wrote:

>Note that subentries control of TRUE means to ONLY return subentries.
>You seem to want a control which requests all entries and subentries
>be returned.  That beast doesn't exist.
>  
>
Understood. I see that Jong committed the appropriate client fix.

-- 
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

Comment 10 Kurt Zeilenga 2005-03-15 03:54:44 UTC
changed state Release to Closed
Comment 11 Howard Chu 2009-02-17 05:08:27 UTC
moved from Software Bugs to Archive.Software Bugs
Comment 12 OpenLDAP project 2014-08-01 21:06:34 UTC
ldapdelete & back-bdb fixed in HEAD