You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,16 @@ Default: false
172
172
173
173
`allowCleartextPasswords=true` allows using the [cleartext client side plugin](https://dev.mysql.com/doc/en/cleartext-pluggable-authentication.html) if required by an account, such as one defined with the [PAM authentication plugin](http://dev.mysql.com/doc/en/pam-authentication-plugin.html). Sending passwords in clear text may be a security problem in some configurations. To avoid problems if there is any possibility that the password would be intercepted, clients should connect to MySQL Server using a method that protects the password. Possibilities include [TLS / SSL](#tls), IPsec, or a private network.
174
174
175
+
##### `AllowDialogPasswords`
176
+
177
+
```
178
+
Type: bool
179
+
Valid Values: true, false
180
+
Default: false
181
+
```
182
+
183
+
`AllowDialogPasswords=true` allows using the [PAM client side plugin](https://mariadb.com/kb/en/authentication-plugin-pam/) if required by an account, such as one defined with the PAM authentication plugin. Sending passwords in clear text may be a security problem in some configurations. To avoid problems if there is any possibility that the password would be intercepted, clients should connect to Server using a method that protects the password. Possibilities include [TLS / SSL](#tls), IPsec, or a private network.
184
+
175
185
176
186
##### `allowFallbackToPlaintext`
177
187
@@ -453,6 +463,16 @@ Default: none
453
463
454
464
[Connection attributes](https://dev.mysql.com/doc/refman/8.0/en/performance-schema-connection-attribute-tables.html) are key-value pairs that application programs can pass to the server at connect time.
455
465
466
+
467
+
##### `OtherPasswd`
468
+
469
+
```
470
+
Type: comma-delimited string of password for MariaDB PAM authentication, if requiring more than one password
471
+
Valid Values: (<password2>,<password3>,...)
472
+
Default: none
473
+
```
474
+
475
+
456
476
##### System Variables
457
477
458
478
Any other parameters are interpreted as system variables:
@@ -534,6 +554,19 @@ See [context support in the database/sql package](https://golang.org/doc/go1.8#d
534
554
> The `QueryContext`, `ExecContext`, etc. variants provided by `database/sql` will cause the connection to be closed if the provided context is cancelled or timed out before the result is received by the driver.
535
555
536
556
557
+
### Authentication Plugin System
558
+
559
+
The driver implements a pluggable authentication system that supports various authentication methods used by MySQL and MariaDB servers. The built-in authentication plugins include:
560
+
561
+
-`mysql_native_password` - The default MySQL authentication method
562
+
-`caching_sha2_password` - Default authentication method in MySQL 8.0+
0 commit comments