Skip to content

Commit e3e0cc5

Browse files
author
Peter Junos
committed
Allow arbitrary authentication plugins
1 parent 9c4dbcf commit e3e0cc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mysql/resource_user.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ func CreateUser(d *schema.ResourceData, meta interface{}) error {
7878
}
7979

8080
if len(auth) > 0 {
81-
switch auth {
82-
case "AWSAuthenticationPlugin":
81+
if auth == "AWSAuthenticationPlugin" {
8382
authStm = " IDENTIFIED WITH AWSAuthenticationPlugin as 'RDS'"
84-
case "mysql_no_login":
85-
authStm = " IDENTIFIED WITH mysql_no_login"
83+
} else {
84+
// mysql_no_login, auth_pam, ...
85+
authStm = " IDENTIFIED WITH " + auth
8686
}
8787
}
8888

0 commit comments

Comments
 (0)