[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pysieved] Authentication problem
- From: David Anderson <dovecot at dw-perspective dot org dot uk>
- Subject: Re: [pysieved] Authentication problem
- Date: Thu, 19 Apr 2007 19:33:25 +0100
Hello Koen,
This looks useful...
I note from http://wiki.dovecot.org/Authentication_Protocol that the
Dovecot authentication agent can also return the uid, gid and mail
location fields - are you interested in hacking up something to get
these too? (I don't know if I said, but I never coded any Python before
yesterday when I wrote the htpasswd auth bit!).
David
On Thursday 19 Apr 2007, Koen Vermeer wrote:
> I did a quick hack to get dovecot-auth to work - see attachment.
> Currently, it just does plaintext authentication, but I guess I could
> try to add more methods if people need that. Any comments are
> welcome!
>
> Koen
>
> Op do, 19-04-2007 te 16:35 +0200, schreef Koen Vermeer:
> > I did some more testing, and it seems that the sasl authentication
> > just doesn't work with dovecot-auth. Did anyone actually managed to
> > use this?
> >
> > According to dovecot's docs, there should be some handshaking
> > first. In the pysieved file auth/sasl.py, I couldn't find anything
> > resembling that. Instead, pysieved just sends the authentication
> > details, and reads from the socket. So, in effect, it reads the
> > handshake data, and interprets that as the response to the
> > authentication. Obviously, that fails.
> >
> > Do we need a dovecot-auth specific sasl.py?
> >
> > Koen
> >
> > On Thu, 2007-04-19 at 10:48 +0200, Koen Vermeer wrote:
> > > Hi,
> > >
> > > I'm trying to get pysieved to work, but I'm having some trouble.
> > > After log in in Squirrelmail and clicking on 'Filters' (avelsieve
> > > plugin), I get an error in pysieved as shown below:
> > >
> > > black:/usr/local/lib/pysieved# python ./pysieved.py -d -d -d -c
> > > pysieved.ini
> > > 1176971740.02 == Connect from ('127.0.0.1', 2408)
> > > 1176971740.02 S: '"IMPLEMENTATION" "pysieved 0.9+DEV"\r\n'
> > > 1176971740.03 S: '"SASL" "PLAIN"\r\n'
> > > 1176971740.03 S: '"SIEVE" "fileinto reject envelope vacation
> > > imapflags notify subaddress relational
> > > comparator-i;ascii-numeric"\r\n' 1176971740.04 C: 'OK\r\n'
> > > 1176971740.04 C: 'AUTHENTICATE "PLAIN" {48+}'
> > > 1176971740.04 C: '[===removed===]'
> > > 1176971740.04 C: ''
> > > AUTH: Auth returns
> > > 'CH\tPLAIN\tplaintext\nVERSION\t1\t0\nSPID\t2395
> > > \nCUID\t6769\nDONE\n'
> > > 1176971740.08 C: 'NO "Bad username or password"\r\n'
> > > 1176971740.32 == done
> > >
> > > I login with my full email address in squirrelmail, which I also
> > > use in dovecot. I have attached my pysieved.ini. Can anyone give
> > > me a clue on why it fails?
> > >
> > > Thanks!
> > >
> > > Koen