Re: pypi download links (e.g. for ansible)

2016-05-09 Thread Michael Ströder
Steven D'Aprano wrote: > On Mon, 9 May 2016 08:00 pm, Michael Strc3b6der wrote: > >> HI! >> >> Deep-links for downloading a specific version from PyPI seemed to work >> like this: >> >> $ wget >> https://pypi.python.org/packages/source/a/ansible/ansible-2.0.1.0.tar.gz >> [..] >> Saving to: ‘ansibl

Re: pypi download links (e.g. for ansible)

2016-05-09 Thread Michael Ströder
harirammano...@gmail.com wrote: > On Monday, May 9, 2016 at 3:30:31 PM UTC+5:30, Michael Ströder wrote: >> HI! >> >> Deep-links for downloading a specific version from PyPI seemed to work like >> this: >> >> $ wget >> https://pypi.python.org/pac

pypi download links (e.g. for ansible)

2016-05-09 Thread Michael Ströder
HI! Deep-links for downloading a specific version from PyPI seemed to work like this: $ wget https://pypi.python.org/packages/source/a/ansible/ansible-2.0.1.0.tar.gz [..] Saving to: ‘ansible-2.0.1.0.tar.gz’ But this recent version does not work: $ wget https://pypi.python.org/packages/source/a

Re: pylint -> ImportError: No module named lazy_object_proxy

2016-02-10 Thread Michael Ströder
Peter Otten wrote: > Michael Ströder wrote: > >> HI! >> >> Hmm, I've used pylint before but my current installation gives me an >> ImportError: >> >> $ pylint >> [..] >> ImportError: No module named lazy_object_proxy >> >>

pylint -> ImportError: No module named lazy_object_proxy

2016-02-10 Thread Michael Ströder
HI! Hmm, I've used pylint before but my current installation gives me an ImportError: $ pylint Traceback (most recent call last): File "/usr/bin/pylint", line 3, in run_pylint() File "/usr/lib/python2.7/site-packages/pylint/__init__.py", line 22, in run_pylint from pylint.lint impo

JOSE modules

2015-11-17 Thread Michael Ströder
HI! It seems there are already three modules for implementing JOSE (see RFC 7515..7520). :-/ Anyone here who has practical experience with any of them (with Python 2.7.x and preferrably with elliptic curves)? Ciao, Michael. pyjwkest https://pypi.python.org/pypi/pyjwkest JWCrypto https://pypi.p

Re: reg multiple login python

2015-10-01 Thread Michael Ströder
harirammanohar...@gmail.com wrote: > I have checked fabric tutorial and examples, it didn't sound that using fab > we can do/push the thing at same time in all servers. What does that mean? Since the posting's subject contains "login" are you trying to minimize the number of authentications neede

ANN: python-ldap 2.4.21

2015-09-25 Thread Michael Ströder
deref implementing support for dereference control Tests/ * Unit tests for module ldif (thanks to Petr Viktorin) -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Lightwight socket IO wrapper

2015-09-21 Thread Michael Ströder
Marko Rauhamaa wrote: > Michael Ströder : > >> Marko Rauhamaa wrote: >>> I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they >>> are available (Linux). >> >> If these options are not available are both option constants also not >&g

Re: Lightwight socket IO wrapper

2015-09-21 Thread Michael Ströder
Marko Rauhamaa wrote: > I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they are > available (Linux). If these options are not available are both option constants also not available? Or does the implementation have to look into sys.platform? Ciao, Michael. -- https://mail.python

Re: problem with netCDF4 OpenDAP

2015-08-14 Thread Michael Ströder
Tom P wrote: > yes the file does appear to be there, I can download it and I can open and > read the URL using urllib. Since there are a whole bunch of files in the > directory, I really need MFDataset, but according to the documentation that > doesn't work with URLs. Maybe the solution really is

Re: Authenticate users using command line tool against AD in python

2015-07-31 Thread Michael Ströder
Prasad Katti wrote: > On Tuesday, July 28, 2015 at 12:56:29 AM UTC-7, Michael Ströder wrote: >> Prasad Katti wrote: >>> I am writing a command line tool in python to generate one time >>> passwords/tokens. The command line tool will have certain sub-commands like >

Re: Authenticate users using command line tool against AD in python

2015-07-28 Thread Michael Ströder
Prasad Katti wrote: > I am writing a command line tool in python to generate one time > passwords/tokens. The command line tool will have certain sub-commands like > --generate-token and --list-all-tokens for example. I want to restrict > access to certain sub-commands. In this case, when user trie

ANN: python-ldap 2.4.20

2015-07-07 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.20 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: Check for running DHCP daemon?

2015-01-24 Thread Michael Ströder
Chris Angelico wrote: > On Sat, Jan 24, 2015 at 9:38 AM, wrote: >> Secondly, even if you find a module, keep in mind that the module probably >> won't stay in Python land. It will probably call an external utility itself. >> >> If you REALLY wanted to check it without calling an external utilit

Re: Case-insensitive sorting of strings (Python newbie)

2015-01-23 Thread Michael Ströder
John Sampson wrote: > I notice that the string method 'lower' seems to convert some strings (input > from a text file) to Unicode but not others. > This messes up sorting if it is used on arguments of 'sorted' since Unicode > strings come before ordinary ones. I doubt that. Can you provide a short

Re: Hello World

2015-01-18 Thread Michael Ströder
Marko Rauhamaa wrote: > Michael Ströder : > >> Marko Rauhamaa wrote: >>> I believe in a >>> physical, government-issue object >> >> Did you forget the smiley? Or where were you during the last 1,5 years? > > You can jug

Re: Hello World

2015-01-18 Thread Michael Ströder
Chris Angelico wrote: > On Mon, Jan 19, 2015 at 12:35 AM, Michael Ströder > wrote: >> Chris Angelico wrote: >>> Want security? >>> Push the encryption and authentication down to a lower layer, and save >>> yourself the trouble. >> >> Yes. And

Re: Hello World

2015-01-18 Thread Michael Ströder
Chris Angelico wrote: > Want security? > Push the encryption and authentication down to a lower layer, and save > yourself the trouble. Yes. And now for the next level: How to prevent unauthorized machines to connect to your network… Ciao, Michael. -- https://mail.python.org/mailman/listinfo/py

Re: Hello World

2015-01-18 Thread Michael Ströder
Marko Rauhamaa wrote: > I believe in a > physical, government-issue object Did you forget the smiley? Or where were you during the last 1,5 years? Ciao, Michael. -- https://mail.python.org/mailman/listinfo/python-list

Re: Hello World

2015-01-18 Thread Michael Ströder
Steven D'Aprano wrote: > Mark Lawrence wrote: > >> Bah humbug, this has reminded me of doing secure work whereby each >> individual had two passwords, both of which had to be changed every >> thirty days, and rules were enforced so you couldn't just increment the >> number at the end of a word or

Re: Hello World

2015-01-18 Thread Michael Ströder
Michael Torrie wrote: > Like many of you I use a password manager these days. It's pretty > slick. But really it shows the absurdity of the situation. Instead of > passwords we should all just use private/public keypairs and store the > private keys in a digital wallet. Forget this password gar

Re: Hello World

2015-01-17 Thread Michael Ströder
alb...@spenarnc.xs4all.nl (Albert van der Horst) wrote: > In article , wrote: >> Michael Torrie wrote: >>> On 01/17/2015 07:51 AM, Albert van der Horst wrote: In article , Chris Angelico wrote: > > But sure. If you want to cut out complication, dispense with user >

ANN: python-ldap 2.4.19

2015-01-11 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.19 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: Hello World

2015-01-08 Thread Michael Ströder
Chris Angelico wrote: > With sudo, you get MUCH finer control. But it's very hard, almost impossible, to really implement fine-grained control with sudo. Too many programs provide shell exits. Well, it's off-topic here. How about taking this to news:comp.security.unix ? Ciao, Michael. -- https

Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email

2014-12-17 Thread Michael Ströder
Radomir Wojcik wrote: > No need to do more troubleshooting, need to update the config. Found that > exim default config denies these so nothing to do with smptlib indeed: > > What this statement is doing is to accept unconditionally all recipients in > messages that are submitted by SMTP from lo

Re: netaddr value back to IP

2014-11-14 Thread Michael Ströder
Noah wrote: > I am trying to get a value back to IP using the netaddr python module. > How do I get the value 'ip' back to IP format? how is it done? > > snip > > print IPNetwork(v4_peer_ip).value > ip = IPNetwork(v4_peer_ip).value + 1 > print ip > > --- snip --- >>> ip=n

Re: asyncio: setting file permissions of a Unix socket?

2014-10-27 Thread Michael Ströder
Martin wrote: > I'm using the asyncio.Protocol interface to build a server which binds > to a unix socket file. I want other system users to connect to the > unix socket, so to communicate with the server. > > Where should I set the permissions of the file? You should start the demon with a stri

ANN: python-ldap 2.4.18

2014-10-09 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.18 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

ANN: python-ldap 2.4.17

2014-09-27 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.17 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

ANN: python-ldap 2.4.16

2014-09-10 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.16 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

ANN: python-ldap 2.4.15

2014-03-27 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.15 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

ANN: python-ldap 2.4.14

2014-02-03 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.14 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: How to manage Git or Mercurial repositories

2013-10-15 Thread Michael Ströder
Andriy Kornatskyy wrote: > Managing version control repositories can be a challenge in multi-user > environment especially when simplification of user collaboration is your > goal. There are usually two primary concerns while considering enterprise > deployment for version control repositories:

ANN: python-ldap 2.4.13

2013-06-27 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.11 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

ANN: python-ldap 2.4.11

2013-05-28 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.11 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: Ldap module and base64 oncoding

2013-05-28 Thread Michael Ströder
Joseph L. Casale wrote: > I had some time today, so I attempted to open the ldif files in binary mode > to simply > work with the raw byte strings but the moment the first entry was parsed, > parse() > stumbled on a character in the first entries dict and passed a dn of None for > the last half?

Re: Ldap module and base64 oncoding

2013-05-27 Thread Michael Ströder
Joseph L. Casale wrote: > After parsing the data for a user I am simply taking a value from the ldif > file and writing > it back out to another which fails, the value parsed is: > > officestreetaddress:: T3R0by1NZcOfbWVyLVN0cmHDn2UgMQ== > > > File "C:\Python27\lib\site-packages\ldif.py", lin

Re: Ldap module and base64 oncoding

2013-05-26 Thread Michael Ströder
Joseph L. Casale wrote: >> I'm not sure what exactly you're asking for. >> Especially "is not being interpreted as a string requiring base64 encoding" >> is >> written without giving the right context. >> >> So I'm just guessing that this might be the usual misunderstandings with use >> of base64

Re: Ldap module and base64 oncoding

2013-05-26 Thread Michael Ströder
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

Re: Ldap module and base64 oncoding

2013-05-26 Thread Michael Ströder
Joseph L. Casale wrote: > I have some data I am working with that is not being interpreted as a string > requiring > base64 encoding when sent to the ldif module for output. > > The base64 string parsed is ZGV0XDMzMTB3YmJccGc= and the raw string is > det\3310wbb\pg. > I'll admit my understanding

Re: python ldap bind error

2012-12-22 Thread Michael Ströder
Jorge Alberto Diaz Orozco wrote: > hi there. > I'm working with python ldap and I need to authenticate my user. > this is the code I'm using. > > import ldap > ldap.set_option(ldap.OPT_REFERRALS,0) > ldap.protocol_version = 3 > conn = ldap.initialize("ldap://ldap.domain.cu";) > conn.simple_bind_s(

Re: [fcgi.py] Force cache upgrade?

2012-10-05 Thread Michael Ströder
Gilles wrote: > On Fri, 28 Sep 2012 23:57:14 +0200, Gilles wrote: >> I guess the FastCGI server (Flup) only updates its cache every so >> often. Do I need to type a command to force Flup to recompile the >> Python script? > > Turns out that, yes, mod_fcgid is configured to reload a script only >

Re: Dynamically scheduling Cron Jobs for Python Scripts.

2012-09-07 Thread Michael Ströder
Miki Tebeka wrote: >> I want to re run the script at that schedule time to send me a email. > > Calculate how much time until the meeting. And spawn the script that will > sleep that amount of time and then send email. And if the process gets interrupted in the meantime (e.g. because of reboot)?

Re: Best way to disconnect from ldap?

2012-04-05 Thread Michael Ströder
John Gordon wrote: > class ldap.LDAPObject > Instances of LDAPObject are returned by initialize() and open() > (deprecated). The connection is automatically unbound and closed > when the LDAP object is deleted. > > So, given that, do I need to do anything at all? Hmm,

Re: "convert" string to bytes without changing data (encoding)

2012-03-30 Thread Michael Ströder
Steven D'Aprano wrote: > On Thu, 29 Mar 2012 17:36:34 +, Prasad, Ramit wrote: > Technically, ASCII goes up to 256 but they are not A-z letters. >>> Technically, ASCII is 7-bit, so it goes up to 127. >> >>> No, ASCII only defines 0-127. Values >=128 are not ASCII. >>> >>> >From https

Enforcing hash randomization (was: [RELEASED] Second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3)

2012-03-20 Thread Michael Ströder
Benjamin Peterson wrote: > Hash randomization causes the iteration order of dicts and sets to be > unpredictable and differ across Python runs. Python has never guaranteed > iteration order of keys in a dict or set, and applications are advised to > never > rely on it. Historically, dict iteration

ANN: python-ldap 2.4.9

2012-03-15 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.8 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: exec

2012-03-01 Thread Michael Ströder
Rolf Wester wrote: The reason to use exec is just laziness. The worst reason for using it. So I hope you carefully read Steven's comment and get rid of exec() for anything serious: <4f4f85eb$0$29989$c3e8da3$54964...@news.astraweb.com> Ciao, Michael. -- http://mail.python.org/mailman/listinf

ANN: python-ldap 2.4.8

2012-02-22 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.8 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: ldap proxy user bind

2012-02-12 Thread Michael Ströder
sajuptpm wrote: Yea i am not totally clear about that Client's Requirement is option to have a ldap proxy user bind to the ldap server if it needs more directory rights than an anonymous bind. option to use a ldap proxy user when searching. As said: there's the proxy authorization control (see

Re: ldap proxy user bind

2012-02-11 Thread Michael Ströder
sajuptpm wrote: I have developed a LDAP auth system using python-ldap module. Using that i can validate username and password, fetch user and groups info from LDAP directory. Now i want to implement ldap proxy user bind to the ldap server. What do you mean exactly? Are you talking about LDAPv

ANN: python-ldap 2.4.7

2012-01-20 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.4 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

ANN: python-ldap 2.4.5

2011-11-25 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.4 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stu

ANN: python-ldap 2.4.4

2011-10-28 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.4 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stu

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-26 Thread Michael Ströder
Waldemar Osuch wrote: > I did try to build it using my current setup but it failed with some linking > errors. > Oh well. Waldemar, I really appreciate your Win32 support. > Google gods were nicer to me. Here is a couple alternative links. > Maybe they will work for you. > http://web.archive.or

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-25 Thread Michael Ströder
Gilles Lenfant wrote: > I have spent a couple of hours asking google, browsing Pypi, SF, and of > course the official www.python-ldap.org site searching for a python-ldap > installer for Python 2.3 on Windows 32 bits. Unsuccessfully :( In theory even recent python-ldap 2.4.3 should still work with

UnicodeError instead of UnicodeWarning

2011-10-25 Thread Michael Ströder
HI! For tracking the cause of a UnicodeWarning I'd like to make the Python interpreter to raise an UnicodeError exception with full stack trace. Is there a short trick to achieve this? Many thanks in advance. Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

ANN: python-ldap 2.4.3

2011-07-23 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.3 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stu

ANN: python-ldap 2.4.1

2011-07-05 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.1 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stu

Re: LDAP: How get all users belongs to a group.

2011-06-25 Thread Michael Ströder
sajuptpm wrote: > results = ldapClient.search_s("cn=My-Group-1,ou=Groups,o=CUST", > ldap.SCOPE_BASE) > > Is this method work for all types of groups (groupOfNames, > posixGroup) ??? Yes, but the member attribute differs. 'member' in entries of object class 'groupOfNames' contains the DN of the m

Re: LDAP: How get all users belongs to a group.

2011-06-24 Thread Michael Ströder
sajuptpm wrote: > --- User > > cn=AJP2203,ou=Internal PCA,o=CUST has group memberships > to the following Groups: > groupMembership: cn=My-Group-1,ou=Groups,o=CUST > groupMembership: cn=My-Group-2,u=Groups,o=CUST > groupMembership: cn=My-Group-3,ou=Groups,o=

Re: LDAP: How get all users belongs to a group.

2011-06-24 Thread Michael Ströder
sajuptpm wrote: > How get all users belongs to a group using python ldap module. There are several ways of storing grouping information in a LDAP server. I assume the groups are normal group entries of object class 'groupOfNames' which is most commonly used. Such an entry has the attribute 'membe

Re: User Authentication

2011-06-24 Thread Michael Ströder
Anurag wrote: > My application is a web based application for both windows and Linux. > The web part is developed using Django. So if Python does not support > it then any support for local sytem account authentication in Django? > > I am looking for a common library for both Linux and Windows. An

ANN: python-ldap 2.4.0

2011-06-03 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.0 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: Active Directory user creation with python-ldap

2011-04-29 Thread Michael Ströder
Nello wrote: > I need to create an Active Directory user using python-ldap library. So, I > authenticate with an admin account and I use "add_s" to create the user. This is possible. Which version of AD are you working with. > Anyway, by default users are disabled on creation, That's the correct

New mailing list for python-ldap

2011-04-01 Thread Michael Ströder
HI! The old SF mailing list python-ldap-dev was shut down today. I'd be happy to see you on the new mailing list for http://python-ldap.org under the umbrella of python.org. List info here: http://mail.python.org/mailman/listinfo/python-ldap All announcements, discussion and support related to

ANN: python-ldap-2.3.13

2011-02-19 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.3.13 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: Streaming templating languages for use as WSGI body.

2011-01-07 Thread Michael Ströder
Alice Bevan–McGregor wrote: > On 2011-01-06 11:11:27 -0800, Adam Tauno Williams said: >> On Thu, 2011-01-06 at 11:07 -0800, Alice Bevan–McGregor wrote: >>> On 2011-01-06 10:00:39 -0800, Adam Tauno Williams said: With HTTP/1.0 [and WSGI is HTTP/1.0 only] you have to provide a Content-Lengt

ANN: python-ldap-2.3.12

2010-08-09 Thread Michael Ströder
stuff (e.g. processing LDIF, LDAPURLs and LDAPv3 schema). Project's web site: http://www.python-ldap.org/ Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com Released 2.3.12 2010-08-05 Ch

Re: python ldap recursive

2010-07-15 Thread Michael Ströder
tekion wrote: > I know perl Net::LDAP could do a recursive search call to LDAP. I don't know perl's Net::LDAP and therefore I'm not sure what you mean with "recursive search call". Personally I'd associate that with recursively processing LDAP tree structure. > What I am running into with Python

Re: [Python-Dev] [RELEASED] 2.7 beta 1

2010-04-10 Thread Michael Ströder
average wrote: >> On behalf of the Python development team, I'm merry to announce the first >> beta >> release of Python 2.7. >> >> Python 2.7 is scheduled (by Guido and Python-dev) to be the last major >> version >> in the 2.x series. Though more major releases have not been absolutely ruled >>

ANN: python-ldap-2.3.11

2010-02-26 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com Released 2.3.11 2010-02-26 Changes since 2.3.10: Lib/ * Fixed LDAP URL parsing with four ? but no real

Re: UnicodeDecodeError? Argh! Nothing works! I'm tired and hurting and...

2009-12-03 Thread Michael Ströder
Aahz wrote: > In article <031bc732$0$1336$c3e8...@news.astraweb.com>, > Steven D'Aprano wrote: >> Good grief, it's about six weeks away from 2010 and Thunderbird still >> uses mbox as it's default mail box format. Hello, the nineties called, >> they want their mail formats back! Are the tbird d

Re: Linux, Python 2.5.2, serverless binding LDAP?

2009-11-13 Thread Michael Ströder
ldap.uninett.no. That is also heavily used with MS AD. Off course you can do this SRV lookup with http://pydns.sf.net which is actually done in my LDAP client http://web2ldap.de: http://demo.web2ldap.de:1760/web2ldap?ldap:///dc=uninett,dc=no??one Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com -- http://mail.python.org/mailman/listinfo/python-list

ANN: python-ldap-2.3.10

2009-11-01 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com -- http://mail.python.org/mailman/listinfo/python-list

Publishing new release on PyPI: How?

2009-10-30 Thread Michael Ströder
HI! Well, maybe I'm completely blind but I can't find a way to add a new release to PyPI index for python-ldap, not just a new file to an existing release version. I'm the project owner and I did it several times in the past. But I simply can't find the button where to add another release. Was the

Re: Error building Python 2.6.3 and 2.6.4rc2

2009-10-24 Thread Michael Ströder
Christian Heimes wrote: > Michael Ströder wrote: >> - snip - >> /usr/src/Python-2.6.4rc2> make >> 'import site' failed; use -v for traceback >> Traceback (most recent call last): >>

Error building Python 2.6.3 and 2.6.4rc2

2009-10-24 Thread Michael Ströder
HI! I'm on a openSUSE system where Python 2.6 is installed from RPMs. I'm trying to build Python from source separately. This used to work in former versions but fails now (see build traceback below). Anyone having a clue what's going on here? Is there a possible work-around? A possible conflict

Re: Is it possible to use python to get True Full Duplex on a Serial port?

2009-08-15 Thread Michael Ströder
Hendrik van Rooyen wrote: > In the past, on this group, I have made statements that said that on Linux, > the serial port handling somehow does not allow transmitting and receiving at > the same time, and nobody contradicted me. Despite all the good comments here by other skilled people I'd rec

Re: unicode() vs. s.decode()

2009-08-08 Thread Michael Ströder
Michael Fötsch wrote: > If speed is your primary concern, this will give you even better > performance than unicode(): > > decoder = codecs.lookup("utf-8").decode > for i in xrange(100): > decoder("äöüÄÖÜß")[0] Hmm, that could be interesting. I will give it a try. > However, there'

Re: unicode() vs. s.decode()

2009-08-08 Thread Michael Ströder
Thorsten Kampe wrote: > * Steven D'Aprano (08 Aug 2009 03:29:43 GMT) >> But why assume that the program takes 8 minutes to run? Perhaps it takes >> 8 seconds to run, and 6 seconds of that is the decoding. Then halving >> that reduces the total runtime from 8 seconds to 5, which is a noticeable >

Re: unicode() vs. s.decode()

2009-08-06 Thread Michael Ströder
Thorsten Kampe wrote: > * Michael Ströder (Thu, 06 Aug 2009 18:26:09 +0200) >>>>> timeit.Timer("unicode('äöüÄÖÜß','utf-8')").timeit(1000) >> 17.23644495010376 >>>>> timeit.Timer("'äöüÄÖÜß'.decode('ut

Re: unicode() vs. s.decode()

2009-08-06 Thread Michael Ströder
Thorsten Kampe wrote: > * Michael Ströder (Wed, 05 Aug 2009 16:43:09 +0200) >> These both expressions are equivalent but which is faster or should be >> used for any reason? >> >> u = unicode(s,'utf-8') >> >> u = s.decode('utf-8') # looks

unicode() vs. s.decode()

2009-08-05 Thread Michael Ströder
HI! These both expressions are equivalent but which is faster or should be used for any reason? u = unicode(s,'utf-8') u = s.decode('utf-8') # looks nicer Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

64-bit issues with dictionaries in Python 2.6

2009-07-29 Thread Michael Ströder
HI! Are there any known issues with dictionaries in Python 2.6 (not 2.6.2) when running on a 64-bit platform? A friend of mine experiences various strange problems with my web2ldap running with Python 2.6 shipped with openSUSE 11.1 x64. For me it seems some dictionary-based internal registries of

ANN: python-ldap-2.3.9

2009-07-27 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com Released 2.3.9 2009-07-26 Changes since 2.3.8: Lib/ * All modules (ldap, ldif, dsml and ldapurl) have

Re: RSA cryptography between Python and Java

2009-07-27 Thread Michael Ströder
h the session key using a symmetric > algorithms like AES. I'd use CMS (AKA PKCS#7) for encrypted/signed data with X.509 certs. One should not invent another message format. Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap

2009-07-09 Thread Michael Ströder
the .egg files recently (also link on the download page above). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Open source python projects

2009-06-23 Thread Michael Ströder
d. But instead of pointing you to a specific project I'd rather recommend that you contribute to projects you're using for your own daily work. Why? Because you simply know what's really needed if you deploy a software yourself. Ciao, Michael. -- Michael Ströder E-Mail: mic

ANN: python-ldap-2.3.8

2009-04-30 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com Released 2.3.8 2009-04-30 Changes since 2.3.7: Lib/ * ldap.schema.models: More fault-tolerant parsing of

ANN: python-ldap-2.3.7

2009-04-10 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Note that the download page has changed recently. You can now find the source distribution at PyPI: http://pypi.python.org/pypi/python-ldap/ Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com

Re: Read a content file from a P7M

2009-03-20 Thread Michael Ströder
Luca wrote: > On Wed, Mar 11, 2009 at 5:05 PM, Luca wrote: >> There is standard or sugested way in python to read the content of a P7M >> file? >> >> I don't need no feature like verify sign, or sign using a certificate. >> I only need to extract the content file of the p7m (a doc, a pdf, ...) >

Re: Read a content file from a P7M

2009-03-20 Thread Michael Ströder
Emanuele Rocca wrote: > On 11/03/09 - 05:05, Luca wrote: >> There is standard or sugested way in python to read the content of a P7M >> file? >> >> I don't need no feature like verify sign, or sign using a certificate. >> I only need to extract the content file of the p7m (a doc, a pdf, ...) > >

Re: ldap package question

2009-03-17 Thread Michael Ströder
John Gordon wrote: > I'm using the ldap package to connect to an ldap server and run a query. > Very simple code, along these lines: > > con = ldap.initialize(uri) > con.simple_bind_s(user, password) > results = con.search_s(group, ldap.SCOPE_SUBTREE, filter, attrs) > for r in results: >

Re: Ldap Extended Operation python

2009-01-26 Thread Michael Ströder
Benny Fallica wrote: > Hello there, > > what would be the python implementation for this line in Java: > > > java.util.Hashtable environment = LdapHelper.getEnvironment(url, true); > LdapContext ldapContext = new InitialLdapContext(environment, null); > Response resp = (Response) ldapContext.ext

Re: EBCDIC <--> ASCII

2008-12-05 Thread Michael Ströder
[EMAIL PROTECTED] wrote: On Dec 4, 4:45 pm, Michael Ströder <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: I'm having a problem trying to use the codecs package to aid me in converting some bytes from EBCDIC into ASCII. Which EBCDIC variant? sEBCDIC = unicode(sSource, '

Re: EBCDIC <--> ASCII

2008-12-04 Thread Michael Ströder
[EMAIL PROTECTED] wrote: I'm having a problem trying to use the codecs package to aid me in converting some bytes from EBCDIC into ASCII. Which EBCDIC variant? sEBCDIC = unicode(sSource, 'cp500', 'ignore') Are you sure CP500 is the EBCDIC variant for the language you want? http://www.ietf.

Re: python openssl x509 CA

2008-10-31 Thread Michael Ströder
Paul Rubin wrote: > Marcin Jurczuk <[EMAIL PROTECTED]> writes: >> I want to create pure python implementation without use of openssl >> wrapped with python code. > > There was a CA written in Python quite a while back, http://pyca.de . That was the usual approach with invoking the openssl command

Re: python-ldap reading an OU with more than 1000 objects

2008-10-18 Thread Michael Ströder
Erick Perez - Quadrian Enterprises, S.A. wrote: > I have a MS Windows AD domain, and have one OU with more tan 1000 users > objects. When I try to read it, I hit the 1000 limit of AD while returning > objects, so I'm asking for advice as to how to read them. IIRC with MS AD you can circumvent this

  1   2   3   >