Package: python-ldap
Version: 2.2.0-3
Severity: important

*** Please type your report below this line ***


-- System Information:
Debian Release: 4.0
 APT prefers testing-proposed-updates
 APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-amd64
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)

Versions of packages python-ldap depends on:
ii  libc6                     2.3.6.ds1-13   GNU C Library: Shared libraries
ii  libldap2                  2.1.30-13.3    OpenLDAP libraries
ii  libsasl2                  2.1.22.dfsg1-8 Authentication abstraction library
ii  python                    2.4.4-2        An interactive high-level object-o
ii  python-central            0.5.12         register and build utility for Pyt

python-ldap recommends no packages.

-- debconf-show failed

I have wrote this script
#!/usr/bin/python
##
import ldif,sys
class c(ldif.LDIFParser):
       def handle(self,dn,entry):
               print "dn:",dn
               print entry
               print
f=open(sys.argv[1])
l=c(f)
l.parse()
##end
then I use it to parse this LDIF-file:
##Begin LDIF##
dn: cn=xxx
changetype: add
objectClass: top

dn: cn=xx,o=yy
changetype: modrdn
newrdn: cn=yy
deleteoldrdn: 1

dn: cn=xx,o=yy
changetype: modrdn
newrdn: cn=yy
deleteoldrdn: 1
newsuperior: o=ee
## END##

It outputs as following:
##Begin Output
dn: add
{'objectClass': ['top']}

dn: modrdn
{'newrdn': ['cn=yy'], 'deleteoldrdn': ['1']}

dn: modrdn
{'newrdn': ['cn=yy'], 'deleteoldrdn': ['1'], 'newsuperior': ['o=ee']}
##END OUTPUT

This is a important bug!


--
--
Best Regards
Chaos Eternal


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to