[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pysieved] Dovecot SASL [FIXED also fixes auth problem]
- From: Jonathan Stewart <jonathan at kc8onw dot net>
- Subject: Re: [pysieved] Dovecot SASL [FIXED also fixes auth problem]
- Date: Thu, 19 Jul 2007 21:31:46 -0400
Jonathan Stewart wrote:
> After trying to auth using PAM it turns out that the python PAM module
> used is specific to Linux-PAM so I decided to try using Dovecot SASL
> like I use with Postfix. I can start pysieved now but I get "Bad
> username and password" in Thunderbirds sieve plugin and
>
> Auth returns
> 'CH\tPLAIN\tplaintext\nVERSION\t1\t0\nSPID\t54374\nCUID\t3200\nDONE\n'
>
> on the console.
>
> Any suggestions?
/me puts on dunce hat for the evening, I see the dovecot module does
auth anyway. I also just spent forever figuring out that the config
file variables have to be left justified or the parser silently barfs :P
(some time period later)
I GOT IT TO WORK! :)
A variable and a function were misnamed, I'm not sure which one was
intended so I just picked one and made it consistent. I think these
where the only 2 changes I had to make, if someone else has trouble with
it please let me know.
--- pysieved.py.orig Thu Jul 19 21:15:09 2007
+++ pysieved.py Thu Jul 19 21:15:21 2007
@@ -94,7 +94,7 @@
def authenticate(self, username, passwd):
self.params['username'] = username
- self.params['password'] = passwd
+ self.params['passwd'] = passwd
return authenticate.auth(self.params)
def get_homedir(self, username):
--- dovecot.py.orig Thu Jul 19 21:22:57 2007
+++ dovecot.py Thu Jul 19 21:22:25 2007
@@ -211,7 +211,7 @@
return False
- def create_storage(self, params):
+ def create(self, params):
return ScriptStorage(self.sievec,
self.scripts_dir,
params['homedir'])
Hope this helps someone else,
Jonathan