| Summary: | monitor.c:545: undefined reference to `auth_password with USE_PAM on | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Kent Engström <kent> |
| Component: | sshd | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> |
| Status: | CLOSED FIXED | ||
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | -current | ||
| Hardware: | ix86 | ||
| OS: | Linux | ||
|
Description
Kent Engström
2002-03-28 03:35:56 AEDT
If I understand the PAM code (none of the PRIVSEP code has been made to work
with it right now) one should never called auth_password() they should
be calling auth_pam_password()..
So in mm_answer_authpassword() function it should look something like this
(untested, and unsure if any other PAM tweaks are needed), but I won't commit
anything until someone says ya or na for it being correct.
passwd = buffer_get_string(m, &plen);
/* Only authenticate if the context is valid */
+#ifdef USE_PAM
+ /* Do PAM auth with password */
+ authenticated = authctxt->valid && auth_pam_password
+ (authctxt>pw,passwd);
+#else
authenticated = authctxt->valid && auth_password(authctxt, passwd);
+#endif
memset(passwd, 0, strlen(passwd));
xfree(passwd);
<grumble> Now I know why I don't cut and past into the comments normally. the correct line is: authenticated = authctxt->valid && auth_pam_password(authctxt->pw,passwd); i will look at this. privsep needs PAM integration, but first let's get --with-pam working with no privsep in use. - (stevesk) [monitor.c] PAM should work again; will *not* work with UsePrivilegeSeparation=yes. Mass change of RESOLVED bugs to CLOSED |