Skip to content

Commit 11555bc

Browse files
authored
Don't update scram hashed password if not changed
1 parent 3375956 commit 11555bc

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
@@ -126,6 +126,8 @@
126126
if $password_hash and $update_password {
127127
if($password_hash =~ /^md5.+/) {
128128
$pwd_hash_sql = $password_hash
129+
} elsif($password_hash =~ /^SCRAM\-SHA\-256\$/) {
130+
$pwd_hash_sql = $password_hash
129131
} else {
130132
$pwd_md5 = md5("${password_hash}${username}")
131133
$pwd_hash_sql = "md5${pwd_md5}"

0 commit comments

Comments
 (0)