Skip to content

Commit

Permalink
Fixed bug in ipa_user access wrong password value
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaludy committed Jan 21, 2021
1 parent 5d8fbea commit 18b76c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Development

## v0.2.1 (2021-01-21)
* Fixed bug with `initial_password` in `ipa_user`.
Contributed by Nick Maludy (@nmaludy)

## v0.2.0 (2021-01-21)
* Added new resources `ipa::user` and `ipa_user` to manage IPA users and their home directories.
Contributed by Nick Maludy (@nmaludy)
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/ipa_user/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def flush_instance

# the user doesn't exist exist. only set the password on add/create
if cached_instance[:ensure] == :absent
body['params'][1]['userpassword'] = resource[:password]
body['params'][1]['userpassword'] = resource[:initial_password]
end

body['params'][1]['ipasshpubkey'] = resource[:sshpubkeys] if resource[:sshpubkeys]
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "encore-ipa",
"version": "0.2.0",
"version": "0.2.1",
"author": "Encore Technologies",
"summary": "Manages IPA servers and clients.",
"license": "Apache-2.0",
Expand Down

0 comments on commit 18b76c0

Please sign in to comment.