Debian Bug report logs - #334354
ldapdelete should support base64-encoded DNs

version graph

Package: ldap-utils; Maintainer for ldap-utils is Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>; Source for ldap-utils is src:openldap.

Reported by: Christian Hammers <ch@debian.org>

Date: Mon, 17 Oct 2005 12:48:04 UTC

Severity: wishlist

Found in version ldap-utils/2.2.23-8

Done: Peter Marschall <peter@adpm.de>

Bug is archived. No further changes may be made.

Forwarded to http://www.openldap.org/its/index.cgi?findid=6025

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Torsten Landschoff <torsten@debian.org>:
Bug#334354; Package ldap-utils. Full text and rfc822 format available.

Acknowledgement sent to Christian Hammers <ch@debian.org>:
New Bug report received and forwarded. Copy sent to Torsten Landschoff <torsten@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Christian Hammers <ch@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Cannot use base64 strings with commandline tools
Date: Mon, 17 Oct 2005 14:39:40 +0200
Package: ldap-utils
Version: 2.2.23-8
Severity: normal

Hello

By accident I got some LDAP entries with newlines in their DN. Now it seems
to be impossible to get rid of them :-)

The LDAP dump shows the DN starting like this:
dn:: Y249dWQtQTIwNC04MDQwDQoNClRlcm1p....

bye,

-christian-

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-15) (ignored: LC_ALL set to de_DE@euro)

Versions of packages ldap-utils depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libldap-2.2-7               2.2.23-8     OpenLDAP libraries
ii  libsasl2                    2.1.19-1.5   Authentication abstraction library
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>:
Bug#334354; Package ldap-utils. (Sat, 28 Feb 2009 18:48:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Marschall <peter@adpm.de>:
Extra info received and forwarded to list. Copy sent to Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>. (Sat, 28 Feb 2009 18:48:25 GMT) Full text and rfc822 format available.

Message #10 received at 334354@bugs.debian.org (full text, mbox):

From: Peter Marschall <peter@adpm.de>
To: Debian Bug Tracking System <334354@bugs.debian.org>
Subject: ldap-utils: not a bug IMHO
Date: Sat, 28 Feb 2009 19:46:46 +0100
Package: ldap-utils
Followup-For: Bug #334354

Hi,

I checked with OpenLDPA 2.4.15:
While it is true that ldapdelete cannot deal with base64-encoded DNs,
ldapmodify and the other tools that deal with LDIF files can.

IMHO it cannot be seen as a bug in ldapdelete that it does not extend
the notion of a base64-encoded value/DN from LDIF, where the double colon ::
after the attribute specification clearly indicates that a base64-encoded
value follows, to a command line argument where this distinction cannot be made.

Nonetheless there are at least two ways to delete entries with special chars in the DN:
- ldapmodify with a delta LDIF file and "changetype: delete"
- ldapdelete with a correctly escaped DN.
  e.g. for the DN in the bug:
    ldapdelete .... 'cn=ud-A204-8040\0D\0A\0D\0ATermi...'

Regards
Peter

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ldap-utils depends on:
ii  libc6                    2.7-18          GNU C Library: Shared libraries
ii  libgnutls26              2.6.4-2         the GNU TLS library - runtime libr
ii  libgssapi2-heimdal       1.2.dfsg.1-2.1  Heimdal Kerberos - GSSAPI support 
ii  libldap-2.4-2            2.4.15-1pm1     OpenLDAP libraries
ii  libsasl2-2               2.1.22.dfsg1-23 Cyrus SASL - authentication abstra

Versions of packages ldap-utils recommends:
ii  libsasl2-modules         2.1.22.dfsg1-23 Cyrus SASL - pluggable authenticat

ldap-utils suggests no packages.

-- no debconf information




Noted your statement that Bug has been forwarded to http://www.openldap.org/its/index.cgi?findid=6025. Request was from Peter Marschall <peter@adpm.de> to control@bugs.debian.org. (Sun, 22 Mar 2009 18:15:04 GMT) Full text and rfc822 format available.

Changed Bug title to `ldapdelete should support base64-encoded DNs' from `Cannot use base64 strings with commandline tools'. Request was from Peter Marschall <peter@adpm.de> to control@bugs.debian.org. (Sun, 22 Mar 2009 18:15:05 GMT) Full text and rfc822 format available.

Severity set to `wishlist' from `normal' Request was from Peter Marschall <peter@adpm.de> to control@bugs.debian.org. (Sun, 22 Mar 2009 18:15:05 GMT) Full text and rfc822 format available.

Reply sent to Peter Marschall <peter@adpm.de>:
You have taken responsibility. (Sun, 22 Mar 2009 18:36:07 GMT) Full text and rfc822 format available.

Notification sent to Christian Hammers <ch@debian.org>:
Bug acknowledged by developer. (Sun, 22 Mar 2009 18:36:07 GMT) Full text and rfc822 format available.

Message #21 received at 334354-done@bugs.debian.org (full text, mbox):

From: Peter Marschall <peter@adpm.de>
To: 334354-done@bugs.debian.org
Cc: Christian Hammers <ch@debian.org>
Subject: #334354 is not a bug
Date: Sun, 22 Mar 2009 19:35:38 +0100
[Message part 1 (text/plain, inline)]
Hi,

according to the associated upstream ITS#6025, which
has been almost immediately closed after its creation,
this is not a bug.
Hence I am going to close it in Debian.

For interested parties I have attached a patch that
tries to extend ldapdelete's notion of DNs to base64-
encoded variants.
Beware, it is only minimally tested!

I do not consider this patch fit for inclusion into
upstream or Debian, as I consider the logic used
a kludge.

Regards
Peter
-- 
Peter Marschall
peter@adpm.de
[openldap-2.4.15-ldapdelete-base64.patch (text/x-diff, attachment)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 20 Apr 2009 07:35:12 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 14:05:47 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.