Your message dated Tue, 06 May 2014 22:03:20 -0700
with message-id <[email protected]>
and subject line Re: Breaking lines in LDIF output
has caused the Debian Bug report #162192,
regarding ldap-utils: ldapsearch linewraps on dn:'s longer than 74 characters
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
162192: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=162192
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ldap-utils
Version: 2.0.23-10
Severity: normal
Tags: upstream
Here is an example:
ldapsearch -b ou=Creatures,ou=Bushwood,ou=CaddyShack,dc=singlestep,dc=com -LLL
uid=CarlsSpecialGrass
Results:
dn: uid=CarlsSpecialGrass,ou=Creatures,ou=Bushwood,ou=CaddyShack,dc=singlestep
,dc=com
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
uid: CarlsSpecialGrass
cn: CarlsSpecialGrass
uidNumber: 100000
gidNumber: 100000
homeDirectory: /home/grass
Notice that the dn: line has a linefeed 74 characters after dn: (dn:_<74
characters>\n). Is there a reason it should be doing this?
This same thing will happen on any DN: longer than 74 characters. The
remainder gets put on the next line. In this case, (,dc=com).
Thank you.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux rancor.singlestep.com 2.4.18 #6 Thu Jul 11 09:51:57 PDT 2002 i686
Locale: LANG=C, LC_CTYPE=
Versions of packages ldap-utils depends on:
ii libc6 2.2.5-14 GNU C Library: Shared libraries an
ii libldap2 2.0.23-10 OpenLDAP libraries.
ii libncurses5 5.2.20020112a-8 Shared libraries for terminal hand
ii libsasl7 1.5.27-3.3 Authentication abstraction library
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 2.4.25-1
On 21/05/03 02:53 AM, Torsten Landschoff wrote:
> So I think that while folding is allowed (according to note 2 even at
> any column) it is not required. If you use ldapsearch in scripts you
> need to support unfolding lines with the current implementation. I
> wonder if it would be possible to add an option to ldapsearch to control
> folding.
This has been done upstream, in ITS#6645: ldapsearch(1) now supports "-o
ldif-wrap=N" to wrap at an arbitrary column and "-o ldif-wrap=no" to
disable wrapping altogether. That change was released in OpenLDAP
2.4.24, which has been in Debian for some time now, so I believe this
bug is done.
thanks,
Ryan
--- End Message ---