Open jeff350 opened 1 year ago
seems like the usermod should be moved into the above if statement
It's intentionally below it so that an existing user is also modified. This is related to #65264 and other issues where the package assumes everyone is using the defaults and nothing else.
Aside: If you have LDAP authentication configured correctly, usermod
should be aware of it via applicable PAM hooks.
However, the install would likely still fail as the package script is not providing LDAP credentials to make the change.
That this is still happening on latest 3006
Description When attempting to install salt-master in an environment where accounts are stored in ldap to ensure consistent uid/gid across the environment, the install fails. the package install step on a RHEL the
yum install salt-master
fails due to the user already existing in ldap.Setup (Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Steps to Reproduce the behavior
Expected behavior Salt should install properly and run as the salt user from the ldap server.
Versions Report N/A salt fails to install
Additional context This appears to be referring to this line in the spec file https://github.com/saltstack/salt/blob/master/pkg/rpm/salt.spec#L417 it seems like the usermod should be moved into the above if statement.