Project

General

Profile

Actions

Bug #37570

open

remote_execution_effective_user_password no longer work when switching from one user to another

Added by Adam Ruzicka 28 days ago. Updated 28 days ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

remote_execution_effective_user_password no longer work when switching from one user to another
Cloned from 15801530

Description of problem:
As $subject and this stops working from 3.3 upwards.

How reproducible:
Easy

Steps to Reproduce:
1. Create a regular user (rexuser) on a system
2. On the same system create another user that will be the effective_user
3. Allow ssh key to login with first user
4. Define a password for the effective_user
5. On Satellite, define the effective user method to su
6. Define the remote_execution_effective_user_password on satellite
7. try running a simple job

Actual results:
On Foreman:

su: Authentication failure

On the host /var/log/secure:

unix_chkpwd20384: password check failed for user (test)
su: pam_unix(su-l:auth): authentication failure; logname= uid=1000 euid=0 tty= ruser=rexuser rhost= user=test

Expected results:

remote_execution_effective_user_password should take effect

Additional info:

Actions #1

Updated by The Foreman Bot 28 days ago

  • Status changed from New to Ready For Testing
  • Assignee set to Adam Ruzicka
  • Pull request https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/116 added
Actions

Also available in: Atom PDF