Re: [Sqlrelay-discussion] Problem with Courier-IMAP using LD_PRELOAD
Brought to you by:
mused
|
From: David M. <dav...@fi...> - 2006-11-01 20:01:26
|
Does Courier-IMAP call it many times to switch between different db's or just once? If not, then setting up the SQL Relay instance to point to the db it needs to use and making mysql_select_db return true is probably the best solution. If so, then there probably isn't a good solution at present. Dave Muse dav...@fi... On Tue, 2006-10-31 at 17:21 +0000, Rodrigo Borges Pereira wrote: > Hello, > > First of all, i'd like to express my appreciation for this nice open-source software, which already proved usefull and efficient, so > thank you for it. Now to the matter at hands. > > I'm trying to integrate Courier-iMAP with Mysql backend and SQLRelay. I detected that Courier-IMAP's authlib, which is the daemon > responsible for communicating with MySQL for auth, exits when calling mysql_select_db(). SQLRelay docs say that this function will > always return false, so the problem is found. > > My question is.. pretty much almost every application talking to MySQL calls mysql_select_db(), no? So, doesn't this break them all? > What are my options? Change SQLRelay's code to always return true? What could be the implications of that? Changing courier's code > seems overkill, and the point of using LD_PRELOAD tactic is exactly to avoid the need of chaning the app's code. > > Any ideas? > > Thank you, > rodrigo > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > |