In article <[EMAIL PROTECTED]>,
Akinori MUSHA <[EMAIL PROTECTED]> wrote:
> I have some problems with the newly updated OpenSSH 2.9.
>
> 1. Sshd fails to authenticate via PAM.
>
> May 5 19:18:07 archon sshd[803]: fatal: PAM setcred failed[6]: Permission denied
If you would just like to get it to work until the person who broke it
fixes it properly, the patch below will accomplish that. This is _not_
a correct fix, and it should definitely not be committed.
John
Index: auth-pam.c
===================================================================
RCS file: /home/ncvs/src/crypto/openssh/auth-pam.c,v
retrieving revision 1.3
diff -u -r1.3 auth-pam.c
--- auth-pam.c 2001/05/05 01:12:45 1.3
+++ auth-pam.c 2001/05/08 02:24:45
@@ -151,11 +151,13 @@
pam_retval, PAM_STRERROR(pamh, pam_retval));
}
+#if 0 /* XXX */
pam_retval = pam_setcred(pamh, PAM_DELETE_CRED);
if (pam_retval != PAM_SUCCESS) {
debug("Cannot delete credentials[%d]: %.200s",
pam_retval, PAM_STRERROR(pamh, pam_retval));
}
+#endif
pam_retval = pam_end(pamh, pam_retval);
if (pam_retval != PAM_SUCCESS) {
@@ -261,6 +263,7 @@
/* Set PAM credentials */
void do_pam_setcred(void)
{
+#if 0 /* XXX */
int pam_retval;
debug("PAM establishing creds");
@@ -269,6 +272,7 @@
fatal("PAM setcred failed[%d]: %.200s",
pam_retval, PAM_STRERROR(pamh, pam_retval));
}
+#endif
}
/* accessor function for file scope static variable */
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message