Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46006 > unrolled thread

RE: Ldap module and base64 oncoding

Started by"Joseph L. Casale" <jcasale@activenetwerx.com>
First post2013-05-25 15:42 +0000
Last post2013-05-26 17:16 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: Ldap module and base64 oncoding "Joseph L. Casale" <jcasale@activenetwerx.com> - 2013-05-25 15:42 +0000
    Re: Ldap module and base64 oncoding Michael Ströder <michael@stroeder.com> - 2013-05-26 17:16 +0200

#46006 — RE: Ldap module and base64 oncoding

From"Joseph L. Casale" <jcasale@activenetwerx.com>
Date2013-05-25 15:42 +0000
SubjectRE: Ldap module and base64 oncoding
Message-ID<mailman.2138.1369496613.3114.python-list@python.org>
> Can you give an example of the code you have?

I actually just overrode the regex used by the method in the LDIFWriter class to be far more broad
about what it interprets as a safe string. I really need to properly handle reading, manipulating and
writing non ascii data to solve this...

Shame there is no ldap module (with the ldifwriter) in Python 3.
jlc

[toc] | [next] | [standalone]


#46075

FromMichael Ströder <michael@stroeder.com>
Date2013-05-26 17:16 +0200
Message-ID<knt8of$flb$1@dont-email.me>
In reply to#46006
Joseph L. Casale wrote:
>> Can you give an example of the code you have?
> 
> I actually just overrode the regex used by the method in the LDIFWriter class to be far more broad
> about what it interprets as a safe string.

Are you sure that you fully understood RFC 2849 before doing this?
Which version of python-ldap are you using?

> I really need to properly handle reading, manipulating and
> writing non ascii data to solve this...

Module ldif in python-ldap does that for you based on RFC 2849.
Without seeing your code using it I cannot tell what's wrong.

> Shame there is no ldap module (with the ldifwriter) in Python 3.

1. The module ldif is stand-alone. So you could easily make it available for
Python 3.

2. "Shame" is the wrong term here. Personally I currently have no requirement
to use Python 3 and I'm quite busy with other things. So contributors are
welcome. But they should be willing to do some serious work giving continous
support - not only a half-baken patch.

Ciao, Michael.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web