MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
auth_socket.c File Reference
#include <mysql/plugin_auth.h>
#include <sys/socket.h>
#include <pwd.h>
#include <string.h>
Include dependency graph for auth_socket.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE   /* for struct ucred */

Functions

 mysql_declare_plugin (socket_auth)

Variables

 mysql_declare_plugin_end

Detailed Description

auth_socket authentication plugin.

Authentication is successful if the connection is done via a unix socket and the owner of the client process matches the user name that was used when connecting to mysqld.

Definition in file auth_socket.c.