Skip to content

Commit 19356e7

Browse files
author
Maxime LYKENG
committed
add mysql_native_password for mariadb 10.2 in password_hash
1 parent f1e89ab commit 19356e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/mysql_user/mysql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def password_hash=(string)
125125
if mysqld_version.nil?
126126
# default ... if mysqld_version does not work
127127
self.class.mysql_caller("SET PASSWORD FOR #{merged_name} = '#{string}'", 'system')
128-
elsif newer_than('mysql' => '5.7.6', 'percona' => '5.7.6')
128+
elsif newer_than('mysql' => '5.7.6', 'percona' => '5.7.6', 'mariadb' => '10.2.0')
129129
raise ArgumentError, _('Only mysql_native_password (*ABCD...XXX) hashes are supported.') unless string =~ %r{^\*|^$}
130130
self.class.mysql_caller("ALTER USER #{merged_name} IDENTIFIED WITH mysql_native_password AS '#{string}'", 'system')
131131
else

0 commit comments

Comments
 (0)