← Back to team overview

mysql-proxy-discuss team mailing list archive

Re: Adding to username

 

Hi!

On Feb 5, 2009, at 7:41 AM, Brock Noland wrote:

Hi,

Thanks to Joshua Zhu I can now see the authentication data.  However,
I was wondering how I could add a string to the username? Say it comes
in as:

user

I would like to send:

host_user

to the server. I tried adding to auth.username but that did not work.
Its possible that I just don't know enough about lua to completely
understand whats going on here...

The code Joshua added is exposing the variables as readonly.
I would like to solve this in a bit cleaner way to avoid code duplication in the long run.

Looking through the code in proxy-plugin.c is seems like code was removed during a merge a while back, so unfortunately this is currently broken :(

Sorry!

cheers,
-k

P.S.: Please open a bug about this at bugs.mysql.com so we can track progress on it.

--
Kay Roepke
Software Engineer, MySQL Enterprise Tools

Sun Microsystems GmbH    Sonnenallee 1, DE-85551 Kirchheim-Heimstetten
Geschaeftsfuehrer: Thomas Schroeder, Wolfang Engels, Dr. Roland Boemer
Vorsitz d. Aufs.rat.: Martin Haering                    HRB MUC 161028




References