Re: Split entries from LDAP

2008-10-13 Thread Michael Ströder
Lars wrote: > I'm trying > to create a script that creates a variable list (just a txt file to be > included in bash scripts) with hosts from LDAP. What exactly do you want to do? I'd recommend against passing a custom text format around. Use either LDIF or CSV with decent modules. > The file wil

Re: Python 2.5.3: call for patches

2008-10-10 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > On Oct 7, 9:27 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> In principle, the release will include all changes that are already on >> the release25-maint branch in subversion [1]. If you think that specific >> changes should be considered, please create an issue in

Re: generate random digits with length of 5

2008-09-28 Thread Michael Ströder
Gary M. Josack wrote: > Aaron "Castironpi" Brady wrote: >> On Sep 28, 2:59 pm, sotirac <[EMAIL PROTECTED]> wrote: >> >>> Wondering if there is a better way to generate string of numbers with >>> a length of 5 which also can have a 0 in the front of the number. >>> >>> >>> random_number = random

Lotus Domino and Python via DIIOP or similar?

2008-09-25 Thread Michael Ströder
HI! Anybody here with experience in accessing Lotus Domino with Python via DIIOP? In particular I'd like to be able to register Notes users with a Python script. Preferrably without having to use Win32 COM although it would be better than nothing. Adding address Notes book entries via LDAP is pos

Re: Can anyone suggest a good crypto package?

2008-09-04 Thread Michael Ströder
Fett wrote: > On Sep 4, 2:23 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: >> How about M2Crypto:http://chandlerproject.org/Projects/MeTooCrypto#Downloads > > Seems that this is intended more for webapps or something, Why do you think so? It's a C wrapper module around the OpenSSL crypto libs. Ci

Re: Split function for host:port in standard lib

2008-08-26 Thread Michael Ströder
Manuel Ebert wrote: On Aug 26, 2008, at 1:31 PM, Michael Ströder wrote: Is there a function in the standard lib which can be used to split a string containg 'host:port' into a tuple (host,port) and also does this reliably for IPv6 addresses? > AFAIK port names cannot contain a

Re: Python LDAP

2008-08-26 Thread Michael Ströder
Juan wrote: self.conn = ldap.initialize(self.host, self.port) > [..] LDAPError: (2, 'No such file or directory') You have to pass in a LDAP URI as documented here: http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.initialize Use of compability function ldap.open() is deprecated

Split function for host:port in standard lib

2008-08-26 Thread Michael Ströder
HI! Is there a function in the standard lib which can be used to split a string containg 'host:port' into a tuple (host,port) and also does this reliably for IPv6 addresses? Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fixed-length text file to database script

2008-08-14 Thread Michael Ströder
Larry Bates wrote: While you are correct, that is not what the OP asked. There is no reference to processing data prior to insertion into MySQL database. Also the OP said they had a 1 day deadline. Larry, having a bad day? I'm confident that the OP is able to sort out *himself* what he need

Re: Fixed-length text file to database script

2008-08-13 Thread Michael Ströder
Larry Bates wrote: [EMAIL PROTECTED] wrote: I have a machine (PLC) that is dumping its test results into a fixed- length text file. I need to pull this data into a database (MySQL most likely) so that I can access it with Crystal Reports to create daily reports for my engineers. [..] I need to

Re: Inserting cookies into a web session

2008-07-24 Thread Michael Ströder
John Gordon wrote: I'm developing a web application that needs a semi-persistent way to store information. I've looked at some options such as writing entries to a database table or creating small textfiles, but I'm not thrilled with anything I've come up with so far. What's the problem? The

Re: need ldap windows binary and/or installation help

2008-07-15 Thread Michael Ströder
Tim Golden wrote: Sells, Fred wrote: I'm running python 2.5 (or 2.4) in an XP environment. I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed now I get this error. Is there anyway to avoid building the

Re: windows active directory ldap output encoding

2008-07-08 Thread Michael Ströder
Michael Ströder wrote: jo3c wrote: Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 The Unicode encoding of LDAP attributes with syntax Directory String is always UTF-8 (e.g. attributes 

Re: windows active directory ldap output encoding

2008-07-08 Thread Michael Ströder
jo3c wrote: Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 The Unicode encoding of LDAP attributes with syntax Directory String is always UTF-8 (e.g. attributes 'cn', 'sn', 'givenName' or 'displayNam

ANN: python-ldap-2.3.5

2008-07-06 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ 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 stuff (e.g.

Re: Parsing MIME-encoded data in an HTTP request

2008-07-05 Thread Michael Ströder
Ron Garret wrote: In article <[EMAIL PROTECTED]>, Ron Garret <[EMAIL PROTECTED]> wrote: In article <[EMAIL PROTECTED]>, Michael Ströder <[EMAIL PROTECTED]> wrote: Ron Garret wrote: I'm writing a little HTTP server and need to parse request content that i

Re: Parsing MIME-encoded data in an HTTP request

2008-07-04 Thread Michael Ströder
Ron Garret wrote: I'm writing a little HTTP server and need to parse request content that is mime-encoded. All the MIME routines in the Python standard library seem to have been subsumed into the email package, which makes this operation a little awkward. How about using cgi.parse_multipart(

Re: imap4_SSL from behind a proxy server

2008-07-04 Thread Michael Ströder
Diez B. Roggisch wrote: Dave schrieb: I'm trying write some Python code to connect to Gmail from work, where I need to direct all non-HTTP traffic through a proxy server. AFAIK that's simply not possible. It's possible. Proxying that is not transparent is only (for practical matters, there

Re: images on the web

2008-06-20 Thread Michael Ströder
chris wrote: I'm creating a data plot and need to display the image to a web page. What's the best way of doing this without having to save the image to disk? I already have a mod_python script that outputs the data in tabular format, but I haven't been able to find anything on adding a generated

Re: images on the web

2008-06-20 Thread Michael Ströder
Matt Nordhoff wrote: Matt Nordhoff wrote: You could use data: URIs [1]. For example, a 43-byte single pixel GIF becomes this URI: They don't have universal browser support, but that might not be a problem in this case. As for generating them with Python, I'm not sure... I just used Hixie's

Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
HI! I'd like to hear from the Python community whether support for Python version prior to 2.3 is still needed in python-ldap. Please tell me which Python version you're using and why it'd be important for you to have python-ldap updates still supporting it. BTW: Actually older Python versio

Re: investigate python auth problem

2008-06-09 Thread Michael Ströder
David Hláčik wrote: I have reproduced steps, to show you sample on another module and its results in INN (becouse i really like to solve this :) Since I don't see anything related to python-ldap please don't follow-up on python-ldap-dev mailing list (removed it from Cc:). Thank you. If the

Register codec dynamically without copying module to lib/python/encodings/

2008-06-05 Thread Michael Ströder
HI! I have a simple codec module for T.61 which principally works. I'd like to use this codec without having to copy the module to lib/python/encodings/. Is that possible? Can I can extend the encodings search path or register the module by calling a function? Ciao, Michael. -- http://mail.p

Re: ThreadPoolingMixIn

2008-06-02 Thread Michael Ströder
[EMAIL PROTECTED] wrote: To benchmark this I used a simple tcp server which writes a small (16k) string to the client and closes the connection. Just a general note: When benchmarking such a network service it would be valuable to see benchmark results for several data sizes. I'd expect bette

Re: config files in python

2008-05-05 Thread Michael Ströder
sandipm wrote: In my application, I have some configurable information which is used by different processes. currently I have stored configration in a conf.py file as name=value pairs, and I am importing conf.py file to use this variable. it works well import conf print conf.SomeVariable but i

Re: python-ldap - Operations Error

2008-04-25 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Thanks for the help guys, it works! I used the ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/ Hmm, maybe I should generally switch off referral chasing in python-ldap forcing applications to enable it if needed overriding libldap's def

Re: python-ldap: searching without specifying an OU?

2008-04-24 Thread Michael Ströder
hotani wrote: http://peeved.org/blog/2007/11/20/ BTW: This blog entry claims that LDAP_SERVER_DOMAIN_SCOPE_OID control cannot be used with python-ldap. But support for such simple LDAPv3 extended controls was added to python-ldap way back in 2005. Actually it's easy (relevant code excerpt):

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
[EMAIL PROTECTED] wrote: import ldap l = ldap.initialize("ldap://server.net";) l.simple_bind(DN, "secret") > 1 ^^^ You probably want to use the synchronous method simple_bind_s() since you want to impersonate on this LDAP connection immediately before doing anything else on th

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
Jason Scheirer wrote: On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. Seems more promising: http://tgolden.sc.sabren.com/python/active_directory.html This i

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: It seems the only way I can bind is by using this format: simple_bind_s('[EMAIL PROTECTED]','password') Believe me: This is not true. If I try using a DN, it fails every time. This will not work: simple_bind_s('cn=user,dc=server,dc=local', 'password') Check the DN you're using

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: This fixed it! http://peeved.org/blog/2007/11/20/ By adding this line after 'import ldap', I was able to search from the root level: ldap.set_option(ldap.OPT_REFERRALS, 0) Uumh, yes. I'm always switching off OpenLDAP client lib's internal referral chasing. But be prepared to a

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: Thanks for the response. The user I'm connecting as should have full access but I'll double check tomorrow. This is the LDAP error that is returned when I leave out the OU: {'info': ': LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind mu

Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread Michael Ströder
hotani wrote: I am attempting to pull info from an LDAP server (Active Directory), but cannot specify an OU. In other words, I need to search users in all OU's, not a specific one. If the user you're binding with has the right in AD to search the whole subtree you can start searching at the do

Re: Remote mac address

2008-04-14 Thread Michael Ströder
Matias Surdi wrote: > Anyone knows how having the IP address of a host on the lan could I get > the mac address of that hosr? > > p/d: Parsing the output of arp -a is not an option. But the ARP table is exactly what you need to access. This is probably system-specific. You could also try to

Re: ldap

2008-04-07 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > Searching on the web I know that exists PythonLdap, but I dont'know if > this is best choise or not. http://python-ldap.sf.net is the most complete implementation I know of. (Being the maintainer I might be biased.) It has the caveat of depending on the OpenLDAP client

Re: object-relational mappers

2008-04-04 Thread Michael Ströder
M.-A. Lemburg wrote: > On 2008-04-01 22:40, Aaron Watters wrote: >> I've been poking around the world of object-relational >> mappers and it inspired me to coin a corellary to the >> the famous quote on regular expressions: >> >> "You have objects and a database: that's 2 problems. >> So: get an ob

ANN: python-ldap-2.3.4

2008-03-29 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ 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 stuff (e.g.

How to convert latex-based docs written with Python 2.5 to 2.6 framework

2008-03-26 Thread Michael Ströder
HI! I had a look on how Doc/ is organized with Python 2.6. There are files with suffix .rst. Hmm... I'm maintaing existing docs for python-ldap which I might have to convert to the new concept in the long run. What's the recommended procedure for doing so? Any pointer? Ciao, Michael. -- http

Re: Some notes on a high-performance Python application.

2008-03-26 Thread Michael Ströder
Heiko Wundram wrote: > Am Mittwoch, 26. März 2008 17:33:43 schrieb John Nagle: >> ... >> >> Using MySQL as a queueing engine across multiple servers is unusual, >> but it works well. It has the nice feature that the queue ordering >> can be anything you can write in a SELECT statement. So we p

ANN: python-ldap-2.3.2

2008-03-26 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ 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 stuff (e.g.

Re: python-ldap for plone 3 (python 2.4.4)

2008-02-21 Thread Michael Ströder
Erol Robaina Cepero wrote: > On 19/02/2008 at 07:12 p.m. Michael Ströder wrote: > >> Erol Robaina Cepero wrote: >>> I need download python-ldap for my plone 3.0.5 that use python 2.4.4. >>> >>> Do you know where I can find it? >> http://python-lda

Re: python-ldap for plone 3 (python 2.4.4)

2008-02-19 Thread Michael Ströder
Erol Robaina Cepero wrote: > I need download python-ldap for my plone 3.0.5 that use python 2.4.4. > > Do you know where I can find it? http://python-ldap.sourceforge.net/download.shtml Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption Recommendation

2008-01-29 Thread Michael Ströder
Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > >> I'm still using Python 2.4. In my code, I want to encrypt a password >> and at another point decrypt it. What is the standard way of doing >> encryption in python? Is it the Pycrypto module? > > Usually, one doesn't store clear-text passw

Re: Is there a string function to trim all non-ascii characters out of a string

2007-12-31 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > > Is there a string function to trim all non-ascii characters out of a > string? > Let say I have a string in python (which is utf8 encoded), is there a > python function which I can convert that to a string which composed of > only ascii characters? I'd recommend to re

Re: lotus nsf to mbox

2007-12-19 Thread Michael Ströder
Adam Lanier wrote: >> Brian Munroe schrieb am 12/15/2007 07:10 PM: >>> >>> If you really need to do it from Linux and are lucky enough to be >>> running the IIOP task on your Domino server, then you could possibly >>> use CORBA. > > You could always enable the IMAP interface on the Domino machine

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-12-08 Thread Michael Ströder
Jeffrey Froman wrote: > > I'd still be interested in a mod_wsgi wrapper for 3rd-party CGI scripts. I doubt that this is possible, not because of the interface. But conventional CGI scripts are implemented with the assumption of being stateless. You would have to completely reinitialize them for e

Re: [OT] minimalist web server

2007-12-02 Thread Michael Ströder
Paul Rubin wrote: >> from SimpleHTTPServer import SimpleRequestHandler >> handler = HTTPServer (('', 8000), SimpleRequestHandler) > > > I think you mean SimpleHTTPRequestHandler. Note that actually reads > the url path and looks in the file system to get the file of that > name, which isn't what

Re: Get Only the Last Items in a Traceback

2007-09-12 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > I'm running code via the "exec in context" statement within a much > larger program. What I would like to do is capture any possible > errors and show a pretty traceback just like the Python interactive > interpreter does, but only show the part of the traceback relating

Re: FCGI app reloading on every request

2007-09-05 Thread Michael Ströder
John Nagle wrote: >This is running on a dedicated server at APlus.net, > running Red Hat Fedora Core 6, Python 2.5, and managed with Plesk 8.2. > I just turned on fcgid from the Plesk control panel ("Physical hosting > setup page for domain", checked "FastCGI"), and enabled the standard > FCGI

Re: FCGI app reloading on every request

2007-09-05 Thread Michael Ströder
John Nagle wrote: > >Tried putting this in the .htaccess file: > > > SetHandler fcgid-script > Options ExecCGI > allow from all > > > > ErrorDocument 403 "File type not supported." > > > Even with that, a ".foo" file gets executed as a CGI script, > and so does a ".fcgi" file. It's

Re: FCGI app reloading on every request

2007-09-04 Thread Michael Ströder
John Nagle wrote: > > What's actually happening is that FCGI isn't running at all. > My .fcgi file is being executed by Apache's CGI handler, and > "fcgi.py" recognizes this, then reads the parameters as if > a CGI program. So it works just like a CGI program: one > load per request. Not sur

Re: python setup.py: how to override a setup.cfg value ?

2007-08-24 Thread Michael Ströder
Chris Shenton wrote: > I'm building python-ldap and need to change values of library and > include paths that are in the setup.cfg file. This is an automated > build (using "buildit") so I'd prefer not to have edit the .cfg by hand, > with sed, or even with buildit's Substitute(). Almost everythi

ANN: python-ldap-2.3.1

2007-07-25 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ 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 stuff (e.g. p

Re: python-ldap for Python 2.5 on Windows?

2007-06-09 Thread Michael Ströder
Waldemar Osuch wrote: > On Jun 8, 6:36 am, Benedict Verheyen <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> i found python-ldap for version Python 2.4. >> Is there i place i can find a version for 2.5? >> >> If not, how can i build it myself for Windows? >> > > I have managed to build it for myself usi

Re: python-ldap for Python 2.5 on Windows?

2007-06-08 Thread Michael Ströder
Benedict Verheyen wrote: > > i found python-ldap for version Python 2.4. > Is there i place i can find a version for 2.5? > > If not, how can i build it myself for Windows? Depending on what you need you might want to dive into OpenLDAP's FAQ: http://www.openldap.org/faq/data/cache/300.html Th

Re: Python Web Programming - looking for examples of solid high-traffic sites

2007-05-22 Thread Michael Ströder
John Nagle wrote: > Sure they do. I have a complex web site, "http://www.downside.com";, > that's implemented with Perl, Apache, and MySQL. It automatically reads > SEC > filings and parses them to produce financial analyses. It's been > running for seven years, and hasn't been modified in f

Re: using python to query active directory

2007-03-07 Thread Michael Ströder
David Bear wrote: > Is it possible to use python to make calls agains microsoft active > directory? What do you mean with "calls agains microsoft active directory"? Querying user and computer entries etc.? python-ldap might be an option for you. Ciao, Michael. -- http://mail.python.org/mailman/

Re: LDAP/LDIF Parsing

2007-02-05 Thread Michael Ströder
Bruno Desthuilliers wrote: > > If you know which attributes are supposed to be multivalued in your > specific application, then it's time to write a more serious, > application-specific wrapper. ldap.schema can be used to find that out. Ciao, Michael. -- http://mail.python.org/mailman/listinfo/

Re: LDAP/LDIF Parsing

2007-02-02 Thread Michael Ströder
Cruelemort wrote: > I was wondering the best way to do this? I have installed and used the > python-ldap libraries and these allow me to access and search the > server, but the searches always return a horrible nesting of lists, > tuples and dictionaries, below is an example of returning just one >

Re: py-ldap question

2006-12-12 Thread Michael Ströder
Laszlo Nagy wrote: > > l = ldap.initialize("ldaps://neptunus.msnet:636") > [..] > ldap.SERVER_DOWN: {'info': 'error:14090086:SSL > routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', 'desc': > "Can't contact LDAP server"} > > I think that I need to specify to the openldap client to t

Re: ldapsearch example in python-ldap?

2006-11-23 Thread Michael Ströder
Nico Grubert wrote: > > on a linux machine I am running this ldapsearch from the command line: > > ldapsearch -x -h myldaphost.mydomain.com \ > -D "CN=ldapuser,CN=Users,DC=mydomain,DC=com" -w "secret" \ > -b "CN=ANYCOMPUTER,CN=Computers,DC=mydomain,DC=com" > > How can I do this with python-l

Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread Michael Ströder
walterbyrd wrote: > I think I have read somewhere that using Python to develop > web-applications requires some restarting of the Apache server, whereas > PHP does not. Using Python to develop web-applications is a very broad topic. E.g. you don't have to restart Apache if you develop simple shor

ANN: python-ldap-2.2.1

2006-11-16 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ 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 stuff (e.g. p

Re: python-ldap and Python 2.5

2006-11-16 Thread Michael Ströder
Michael Ströder wrote: > > But this seems to help (tested on my local system): > http://sourceforge.net/tracker/index.php?func=detail&aid=1575329&group_id=2072&atid=102072 Released python-ldap 2.2.1 yesterday which contains this fix. Ciao, Michael. -- http://mail.python

python-ldap and Python 2.5 (was: Python 2.5 Core Dump on Solaris 8)

2006-11-15 Thread Michael Ströder
Martin v. Löwis wrote: > Melissa Evans schrieb: > >>I've modified grappy.py, >>http://www.stacken.kth.se/~mattiasa/projects/grappy/, a postfix policy >>daemon for greylisting. to use LDAP as a backend instead of SQL (with >>python-ldap.) The daemon runs fine when testing but when I put it under >

Re: python-ldap/win32 or python/ldap/win32

2006-11-06 Thread Michael Ströder
rcmn wrote: > i'm running around in circle trying to to use python/ldap/ on > win32(WinXP). Maybe this message sent to the python-ldap-dev mailing list helps. You're welcome to follow up on this list. Ciao, Michael. Original Message Subject: Experimental 2.2.0 Windows Build Dat

Re: SSL follow up

2006-10-26 Thread Michael Ströder
Paul Rubin wrote: > > To dump out the certificate? Try: > >openssl x509 -text -in filename.crt > > if the cert is in a file. Omit that -in parameter if you want openssl > to read from stdin. Of course now you get this other text format > thing to parse, but it's not so bad. I wouldn't re

Re: Obtaining SSL certificate info from SSL object - BUG?

2006-10-26 Thread Michael Ströder
Donn Cave wrote: > In article <[EMAIL PROTECTED]>, > John Nagle <[EMAIL PROTECTED]> wrote: >> >>Note that >> >>"OU=Terms of use at www.verisign.com/rpa (c)00" >> >>with a "/" in the middle of the value field. > > ... > >>Is there a workaround for this? Without rebuilding Python >>and becomi

Re: Obtaining SSL certificate info from SSL object - BUG?

2006-10-26 Thread Michael Ströder
John Nagle wrote: > The Python SSL object offers two methods from obtaining > the info from an SSL certificate, "server()" and "issuer()". > The actual values in the certificate are a series of name/value > pairs in ASN.1 binary format. But what "server()" and "issuer()" > return are strings,

Re: UTF-8 to unicode or latin-1 (and yes, I read the FAQ)

2006-10-19 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > > print 'K\xc3\xb6ni'.decode('utf-8') > > and this line raised a UnicodeDecode exception. Works for me. Note that 'K\xc3\xb6ni'.decode('utf-8') returns a Unicode object. With print this is implicitly converted to string. The char set used depends on your console Chec

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Michael Ströder
Paul Rubin wrote: > [EMAIL PROTECTED] writes: > >>Which is something SourceForge has yet to learn. At work we use a system >>called RT (http://www.bestpractical.com/rt/). While it's not perfect, it >>does allow submissions and responses via email. That feature alone puts it >>miles ahead of SF

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > Fredrik> you need tools to help you track the bugs and their status, but > Fredrik> you can handle issue registration, discussion, and most > Fredrik> maintenance stuff using good old mail just fine. > > Which is something SourceForge has yet to learn. At wo

Re: Python to use a non open source bug tracker?

2006-10-05 Thread Michael Ströder
Ilias Lazaridis wrote: > > You need just 2 active contributors - and the python community, not > more Hmm, this number does not say much. It really depends on the required service level and how much time these two people can spend for maintaining the tracker service. Ciao, Michael. -- http://ma

Re: Python to use a non open source bug tracker?

2006-10-05 Thread Michael Ströder
Giovanni Bajo wrote: > Martin, I am by no means understimating Daniel's work. I am just noting that > the spare-time work he did is, by definition, much much lower than the "6-10 > people" that the PSF infrastructure committee is calling for. I would like > this > statement to be officially reduce

Re: Pythondocs.info : collaborative Python documentation project

2006-09-18 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > > That's why I have started a collaborative project to make a user > contributed Python documentation. The wiki is online here: > http://www.pythondocs.info Frankly I'm tired of these yet-another-wiki announcements! Who is supposed to fill them with content? If you hav

Re: working with ldap files

2006-09-04 Thread Michael Ströder
flit wrote: > > I am struggling with some ldap files. More general you are struggling with multiple attribute values of DN syntax stored in a single field of a CSV file. > I am using the csv module to work with this files (I exported the ldap > to a csv file). I guess you have MS AD and used MS

Re: [newbie]apache authentication questions

2006-06-13 Thread Michael Ströder
Steve Holden wrote: > [EMAIL PROTECTED] wrote: > >> It is not impossible though and in cases where you don't have a choice >> but to use a HTTP authentication scheme, use of AJAX may be the >> answer to still allowing use of a form based login scheme. See: >> >> http://www.peej.co.uk/articles/ht

Re: Active Directory Authentication

2006-05-06 Thread Michael Ströder
Stephan Diehl wrote: > On Fri, 05 May 2006 05:39:08 -0700, D wrote: > >>Is it possible to have Python authenticate with Active Directory? >>Specifically what I'd like to do is have a user enter a >>username/password, then have Python check the credentials with AD - if >>what they entered is valid,

ANN: python-ldap-2.2.0

2006-04-09 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ 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 stuff (e.g. p

Re: ldap usage

2006-03-31 Thread Michael Ströder
Jed Parsons wrote: > >> Which LDAP server are you using? You can switch off this behaviour >> with OpenLDAP. See man 5 slapd.conf, allow . > > I don't have anything other than user access. Good to know about this > feature, though. In case you're programming for different LDAP servers it's good

Re: ldap usage

2006-03-30 Thread Michael Ströder
Jed Parsons wrote: > > As an addendum, I discovered one little gotcha, namely that this: > > l.bind_s(username, password, ldap.AUTH_SIMPLE) > > throws an ldap.INVALID_CREDENTIALS error if the password contains the > wrong text, but works if the password is empty. I guess this is > tantamoun

Re: ldap usage

2006-03-29 Thread Michael Ströder
Jed Parsons wrote: > > import ldap > l = ldap.open('our.ldap.server') > try: > l.bind_s(username, password, ldap.AUTH_SIMPLE) > authenticated = True > except: > authenticated = False ^^^ Identiation is wrong here. Also I'd recommend to catch the ldap.LDAP

Re: Embedding an Application in a Web browser

2006-02-14 Thread Michael Ströder
bruno at modulix wrote: > rodmc wrote: > >>Is it possible to embed a Python application within Internet explorer? > > No. Nor in any other browser (except from Grail, but I think this > doesn't count). I remember there was a project for running CGI-BIN-like programs directly in Mozilla without a

Re: Webmail with Python

2006-02-06 Thread Michael Ströder
Paul Rubin wrote: > Thomas Guettler <[EMAIL PROTECTED]> writes: > >>Yes, Zope or Plone are to heavyweight for this. I will use squirrelmail, >>I think it stable. I hope that I don't need to touch the PHP code. > > Be careful, Squirrelmail had some annoying privacy bugs which the > maintainers (as

Re: Authenticating to Kerberos

2006-01-30 Thread Michael Ströder
P server checks the same "password" as the Kerberos Domain Controller (e.g. MS AD or heimdal KDC with OpenLDAP backend). Ciao, Michael. -- Michael Ströder E-Mail: [EMAIL PROTECTED] http://www.stroeder.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Suggestions for workaround in CSV bug

2006-01-24 Thread Michael Ströder
Simmons, Stephen wrote: > > I've come across a bug in CSV where the csv.reader() raises an > exception if the input line contains '\r'. Example code and output > below shows a test case where csv.reader() cannot read an array > written by csv.writer(). > > Error: newline inside string > WARNING

Re: ldap passwd need help

2006-01-19 Thread Michael Ströder
Sells, Fred wrote: > > I've got the ldap stuff working for groups, but now I'm trying to use it to > change a user password. I get a return of 2 and no error messages but it > does not change ldap. Could you please post a complete Python traceback? If you mean "2" being the LDAP error code this

Re: Convert Active Directory Object to string

2006-01-19 Thread Michael Ströder
Dirk Hagemann wrote: > > What I want to do in the end is the following: I get some data from > Active Directory, then I create a SQL-statement including this data and > write this into the database. Which API and protocol are you using to access Active Directory? If you access it via LDAP (e.g.

Re: SuSe 10.0 missing Idle

2005-11-11 Thread Michael Ströder
Joseph Garvin wrote: > SuSE probably has a seperate package, something like python-tk, that > will install IDLE. # rpm -qf `which idle` python-idle-2.4.1-3 Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

ANN: python-ldap-2.0.11

2005-11-07 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ 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 stuff (e.g. p

Re: Web based applications are possible with wxPython?

2005-10-25 Thread Michael Ströder
HI! Shameless plug: I'm looking for the opposite way. I'd like to run a web application within a pseudo-browser in wxPython without the need to start a web server. Is that possible with a thin wrapper? Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation for iteration in mappings

2005-10-25 Thread Michael Ströder
Dennis Benzinger wrote: > > I must be blind because I didn't find anything in the documentation > which says iterating over an dictionary iterates over its keys. > > For example > > a_dictionary = {0: "zero", 1: "one"} > for x in a: > print x > > gives you > > 0 > 1 > > Where is this info

Re: Send password over TCP connection

2005-10-13 Thread Michael Ströder
dcrespo wrote: > > Ok, I understand it. What about the MD5? Is it good enough to use when > saving a hashed password on the database? > > For example: > user_input = raw_input("Type your password: ") > password = md5.md5(user_input).hexdigest() > SavePasswordInDatabase(user,password) It would be

Re: Send password over TCP connection

2005-10-10 Thread Michael Ströder
Dan Stromberg wrote: > On Mon, 10 Oct 2005 15:13:14 -0700, Paul Rubin wrote: >> >>Use SRP if you can. > > Where can I learn more about this? http://www.faqs.org/rfcs/rfc2945.html Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-10 Thread Michael Ströder
Rich Teer wrote: > On Sun, 9 Oct 2005, Roedy Green wrote: > >>Normally you send photos to grandma with captions under each photo. >>That is far more convenient for the technopeasant receiver than >>dealing with multiple attachments. > > And even more convenient is "Hey grandma, check out the late

Re: Fixes since 2.4.2c1?

2005-09-30 Thread Michael Ströder
Martin v. Löwis wrote: > Michael Ströder wrote: > >>Does that differ from 2.4.2c1? On Monday I noticed a crash in the test >>suite on a box running Solaris 8. It seems I can build Python 2.4.1 and >>run make test there without problems. > > There is also a chance

Fixes since 2.4.2c1? (was: RELEASED Python 2.4.2 (final))

2005-09-28 Thread Michael Ströder
Anthony Baxter wrote: > On behalf of the Python development team and the Python community, I'm > happy to announce the release of Python 2.4.2 (final). Does that differ from 2.4.2c1? On Monday I noticed a crash in the test suite on a box running Solaris 8. It seems I can build Python 2.4.1 and run

Re: RE + UTF-8

2005-09-24 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > > I have tried to test RE and UTF-8 in Python generally and the results > are even more confusing (done with locale cs_CZ.UTF-8 in konsole): > >>>locale.getpreferredencoding() > > 'UTF-8' > print re.sub("(\w*)","X","[Chelcický]",re.L) You first have to turn the r

ANN: python-ldap-2.0.10

2005-09-23 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ 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 stuff (e.g. p

Re: Secure email

2005-08-04 Thread Michael Ströder
Martin P. Hellwig wrote: > Michael Ströder wrote: > >> Martin P. Hellwig wrote: >> >>> I think you want this more common approach for mail encryption: >>> >>> server: >>> https CGI form --> mail wrapper --> PGP encryption/signing

<    1   2   3   >