The requirement is to receive an SQL query(over tcp) from a client(which is using a mysql client library - libmysqlclient.so.16.0.0) and then convert it to an LDAP request and send out to an LDAP server.
The reason is that the client cannot be changed to use the LDAP interface, so I am looking to include a component that can reside between the MySQL client and the LDAP server.
I have tried looking at the MySQL server plug-ins but I could not get something that matches my requirement. Do you have any recommendations?
Edit: The SQL query in this case is a "SELECT" statement. So in this case the LDAP results received(usually one row and just one column), needs to be sent back as an SQL response.