[python-ldap] Decoding AttributeValues
Michael Ströder
michael at stroeder.com
Fri Dec 21 14:43:02 CET 2012
Anders,
(please subscribe to the mailing list so I don't have to approve your posting.
For this time I've manually approved your posting though.)
Anders Thøgersen wrote:
> I ran into a problem when decoding AttributeValues while using ldif.py.
> Looking a bit at http://tools.ietf.org/html/rfc4514#section-2.4 I came up
> with the attached patch which fixes my problem.
I'm not sure your patch does address your problem at the right level.
You're citing RFC 4514 which is about generating a string representation of
distinguished names. IMO in LDIF you're just using those string
representations but you don't have to deal with generating or decoding them -
or at least not within python-ldap's module ldif. Decoding the ASN.1 values
should be definitely done outside module ldif.
So your patch is not accepted.
Giving more input including example data would help understanding which
particular problem you want to solve.
Ciao, Michael.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3883 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20121221/3cfd7f3a/attachment.bin>
More information about the python-ldap
mailing list