[Twisted-Python] mail and web server authentication: yet to come or already there?
ste at webaccess.mozquito.com
Wed Nov 20 15:42:08 EST 2002
Hello all, I am a new Twisted (and Python) user and first of all I would like to thank you for the great software. I love the architecture and I am sure I will learn a lot from looking at how it is implemented.
I would like to use twisted as an integrated mail/web server, in order to do some stuff like what I've done here . I think I need to develop some minor but useful stuff that I will then post here so you can all see how bad my python coding is :-) for example, I am working to make the POP3 server compatible with mozilla...
One thing that is puzzling me is the twisted.cred stuff, even after reading all about it in the docs it is still not clear to my dummy self how to put it to use in order to restrict access on the twisted.web service (is HTTP basic auth implemented somewhere btw?) and also I don't understand why it is not used for access control to the twisted.mail services. Simply a matter of time or is it really meant for other types of authentication? Some more examples in this very sensitive area for people not using PB would help a lot....
One very small and probably already screwing-up-things contribution that I can do now is to the SMTP class, I include herewith my first attempt at using the diff utility:
$ diff cvs/Twisted/twisted/protocols/smtp.py cvs/Twisted/twisted/protocols/smtp.py_orig
< to = rest[string.find(rest, "<")+1:-len(">")]
> to = rest[len("TO:<"):-len(">")]
After modifying that, I was able to send mail using Blat .
I am unfortunately locked on a win$ platform for my development so many things are unnecessarily difficult, like getting C stuff to compile without having visual studio installed for instance. Is this dependancy on the m$ compiler anything unavoidable when doing python? Please forgive if that's a stupid question, I am new to this very cool language and had a very hard time getting SSL to work even though it was stated it would build with borland or cygwin compilers: I read somewhere in the twisted archives that some guy promised to write a walkthrough for that, did that ever happen :-) ?
Oops the very last is this one: are ALL tests supposed to work out-of-the-box (apart from those needing the crypto lib)? When I run them the UI crashes... :-(
Alright I'll stop my whining here for now and thank you very much for reading so far and providing this great framework, ciao
p.s. aha here I go again: no way for me to access the IRC channel (lucky you :) as my provider seems to be blocking the identd stuff :-((( what happened to ?
More information about the Twisted-Python