[Dovecot] mysql-5.0.26 stored procedure authorization, take 2

Timo Sirainen tss at iki.fi
Sun Oct 22 18:10:47 UTC 2006


On Sat, 2006-10-21 at 20:37 +0200, Chaos Engine wrote:
> "Oct 21 12:39:22 haos dovecot: auth-worker(default):
> sql(user,192.168.X.X): Password query fai led: Commands out of sync;
> you can't run this command now"
..
> Looks like it is partly mysql-5.0.26 thing because of this:
> http://dev.mysql.com/doc/refman/5.0/en/commands-out-of-sync.html
..
> #655536 is equivalent of CLIENT_MULTI_STATEMENTS flag 
> #yes, I still insist
> on using stored proc for authorization. This gives me few usefull features I like. 
> password_query = call Authenticat('%u', '%n', '%d')

Since this works only with multi-statements, I guess the authenticat
procedure executes multiple statements? Which I guess breaks because of
this:

"It can also happen if you try to execute two queries that return data
without calling mysql_use_result() or mysql_store_result() in between."

I don't really see why this should be forced though.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061022/6a27c9fa/attachment.pgp 


More information about the dovecot mailing list