Skip to content

Commit e82d032

Browse files
committed
Don't update scram hashed password if not changed
1 parent ef64c30 commit e82d032

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manifests/server/role.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
if $password_hash and $update_password {
131131
if($password_hash =~ /^md5.+/) {
132132
$pwd_hash_sql = $password_hash
133+
} elsif($password_hash =~ /^SCRAM\-SHA\-256\$/) {
134+
$pwd_hash_sql = $password_hash
133135
} else {
134136
$pwd_md5 = md5("${password_hash}${username}")
135137
$pwd_hash_sql = "md5${pwd_md5}"

0 commit comments

Comments
 (0)