diff options
author | Sam Doran <sdoran@redhat.com> | 2019-03-14 22:16:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 22:16:53 -0400 |
commit | 1e595493d92952d168af6cf1bef58d41abcb6a8f (patch) | |
tree | 884e3a11a8cbb5a88267076a4c9bae2d789b3fdb /changelogs | |
parent | 43a44e6f3533170557cb971df6b3272e8bb7fa6b (diff) | |
download | ansible-1e595493d92952d168af6cf1bef58d41abcb6a8f.tar.gz |
User module - Check local database when local is specified in the task (#51088)
The output of pw.getpwnam() does not distinbuish between local and remote accounts. It will return a result if an account exists locally or in the directory. When local is set to True in the task parameters, look through the local password database explicitly.
* Ensure luseradd is present for tests
* Add docs and warnings about local mode
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/user-read-passwd-when-local.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/user-read-passwd-when-local.yaml b/changelogs/user-read-passwd-when-local.yaml new file mode 100644 index 0000000000..829cf7ac6a --- /dev/null +++ b/changelogs/user-read-passwd-when-local.yaml @@ -0,0 +1,2 @@ +bugfixes: + - user - fix a bug when checking if a local user account exists on a system using directory authentication (https://github.com/ansible/ansible/issues/50947, https://github.com/ansible/ansible/issues/38206) |