| Summary: | PAM Callback returns garbage if user unknown or root with disabled login in ssh-config | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Markus Mueller <openbsd> | ||||||||
| Component: | PAM support | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||||
| Status: | NEW --- | ||||||||||
| Severity: | normal | CC: | castro8583bennett, obrhyant | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 4.5p1 | ||||||||||
| Hardware: | Other | ||||||||||
| OS: | Linux | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Markus Mueller
2006-12-06 02:51:31 AEDT
Created attachment 1217 [details]
E-Mail conversion about this with Darren Tucker
Created attachment 1218 [details]
Simplest fix, if the user is unknown the input gets still delivered and not changed
Created attachment 1219 [details]
libnss module solving this problem
There is a hotfix for this problem, resolved via libnss: Just compile this short libnss module via
gcc -c -o passwd.o passwd.c
gcc --shared -o passwd.so passwd.o
name the output file (here passwd.so) for example "permit" so the libnss filename results in the filename "libnss_permit.so.2". Copy the passwd.so with this filebname to /lib, and add in nsswitch.conf after "compat" the name you did choose (in the example it is here it is "permit"):
[...]
passwd: compat permit
[...]
If you now restart your sshd, SSH passes all informations, beside of a deactivated root user, user to pam.
Bug #1215 is also about this code area and logik, it is surely helpful if someone is concerned with this difficulty. Im also having the same problem this is so difficult Castro B, https://sparpedia.no |