MySQL Connector/Net applications can authenticate to a MySQL server using the Windows Native Authentication Plugin as of Connector/Net 6.4.4 and MySQL 5.5.16/5.6.10. Users who have logged in to Windows can connect from MySQL client programs to the server based on the information in their environment without specifying an additional password. For background and usage information about the authentication plugin, see Windows Pluggable Authentication.
The interface matches the
object. To enable, pass in
to the connection string with a value of
Passing in a user ID is optional. When Windows authentication is
set up, a MySQL user is created and configured to be used by
Windows authentication. By default, this user ID is named
auth_windows, but can be defined using a
different name. If the default name is used, then passing the user
ID to the connection string from Connector/Net is optional, because it
will use the
auth_windows user. Otherwise, the
name must be passed to the
string using the standard user ID element.