ldapdelete fails on recursive deletes

Bug #1064758 reported by Ben Beuchler on 2012-10-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Low
Unassigned

Bug Description

ldapdelete -Wx -H ldapi:/// -r dc=test,dc=example,dc=com
Enter LDAP Password:
ldap_delete: Other (e.g., implementation specific) error (80)
ldap_delete: Operation not allowed on non-leaf (66)
 additional info: subordinate objects must be deleted first

The top level of the database is dc=example,dc=com. There are a couple of hundred subordinate entries under dc=test,dc=example,dc=com. According to the ldapdelete man page:

       -r Do a recursive delete. If the DN specified isn't a leaf, its
              children, and all their children are deleted down the tree. No
              verification is done, so if you add this switch, ldapdelete will
              happily delete large portions of your tree. Use with care.

I would expect that this would delete the entire branch of the LDAP tree from dc=test,dc=example,dc=com on down.

Possibly related issue:

http://www.openldap.org/lists/openldap-software/200504/msg00391.html

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: slapd 2.4.21-0ubuntu5.7
ProcVersionSignature: Ubuntu 2.6.32-42.96-server 2.6.32.59+drm33.24
Uname: Linux 2.6.32-42-server x86_64
Architecture: amd64
Date: Tue Oct 9 18:27:01 2012
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: openldap

Ben Beuchler (insyte) wrote :
description: updated
James Page (james-page) on 2012-11-15
Changed in openldap (Ubuntu):
importance: Undecided → Low
dino99 (9d9) wrote :

That version is no more supported; and backport is not expected as its not a 'security' problem

Changed in openldap (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers