Learn more about these different git repos.
Other Git URLs
When -p or --password-file option for sss_seed tool is used to read user password from a file, the cache gets updated. However, user authentication always fails.
Steps to reproduce: 1. Ensure that the system is offline. 2. Create a file with a user password in plain text as given below. # echo "Password123" > /root/passfile
Execute the sss_seed tool to read user password from a file, as given below with the -p option # sss_seed -D LDAP -n user -u 10121 -g 10121 -c "Temporary user" -h /home/user -s /bin/bash -p /root/passfile
Verify whether the user authentication succeeds. # ssh -l user localhost
Result seen: Authentication fails.
The man page for sss_seed tool doesn't provide much info on how to create the password for authentication. Hence, plain text password was used which doesn't seems to work.
Amith, I think the issue is a newline in the password file.
Please retest with modified step 2: echo -n "Password" > /root/passfile
Jakub, thanks for the update. It was a newline issue. Authentication is working fine now.
Strip all new lines in the file.
milestone: NEEDS_TRIAGE => SSSD 1.9.1 rhbz: => 0
Fields changed
owner: somebody => mzidek
patch: 0 => 1
master: 2be3f0f
resolution: => fixed status: new => closed
Metadata Update from @apeetham: - Issue assigned to mzidek - Issue set to the milestone: SSSD 1.9.1
SSSD is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in SSSD's github repository.
This issue has been cloned to Github and is available here: - https://github.com/SSSD/sssd/issues/2590
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Login to comment on this ticket.