![](https://secure.gravatar.com/avatar/39b623a1559cf9c69ac3d9d4fb44e7fe.jpg?s=120&d=mm&r=g)
Hi, Vladislav! On Jul 14, Vladislav Vaintroub wrote:
Hi Serg, is there any possibility to return own error messages and codes , if pluggable authentication failed on client on some reason ?
Case in point here is Kerberos (GSSAPI or SSPI) - it may fail on client or on server, with some GSSAPI/SSPI specific code. We would like user to know what exactly happened , rather than return a generic CR_ERROR. Perhaps user can fix the situation - maybe he just needs to obtain Kerberos ticket with kinit, or login as Windows domain user, or something like that. If error happens on the server side, at least there it is possible to write to error log. But on the client side, there is no error log, and writing to stdout/err is not a good idea. Is there a trick that allows custom messages on the client?
On the server, I suppose, you can stil use my_error() and co. On the client - libmysql uses set_mysql_extended_error() - is it exported to plugins? If yes - you're good. If not, we can, probably, export it. Regards, Sergei