[Sqlrelay-discussion] Problem with Courier-IMAP using LD_PRELOAD
Brought to you by:
mused
From: Rodrigo B. P. <rbp...@in...> - 2006-10-31 17:28:12
|
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 |