From owner-freebsd-current Mon Sep 11 3: 4:20 2000 Delivered-To: freebsd-current@freebsd.org Received: from waterblue.imgsrc.co.jp (waterblue.imgsrc.co.jp [210.226.20.160]) by hub.freebsd.org (Postfix) with ESMTP id 47C7F37B422 for ; Mon, 11 Sep 2000 03:04:18 -0700 (PDT) Received: from waterblue.imgsrc.co.jp (localhost [127.0.0.1]) by waterblue.imgsrc.co.jp (8.11.0/8.11.0) with ESMTP id e8B9vjG73281 for ; Mon, 11 Sep 2000 18:57:46 +0900 (JST) Date: Mon, 11 Sep 2000 18:57:45 +0900 Message-ID: <7mem2rqmhy.wl@waterblue.imgsrc.co.jp> From: Jun Kuriyama To: Current Subject: PAM in ftpd.c User-Agent: Wanderlust/1.1.1 (Purple Rain) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't know around PAM coding, but below topic is there in Japanese mailing list. o After setting /etc/skey.access, cannot login to ftpd via UNIX password. There is a patch to fix this problem in that mailing list. Could someone review and commit it? (Submitted by: hirohito@youko-house.ne.jp) *** ftpd.c.orig Mon Jun 26 14:44:43 2000 --- ftpd.c Sat Sep 9 20:06:24 2000 *************** *** 1109,1114 **** --- 1109,1126 ---- syslog(LOG_ERR, "pam_start: %s", pam_strerror(pamh, e)); return -1; } + e = pam_set_item( pamh, PAM_TTY, ttyname(0) ); + if( e != PAM_SUCCESS ) + { + syslog( LOG_ERR, "pam_set_item(PAM_TTY): %s", pam_strerror( pamh, e ) ); + return -1; + } + e = pam_set_item( pamh, PAM_RHOST, remotehost ); + if( e != PAM_SUCCESS ) + { + syslog( LOG_ERR, "pam_set_item(PAM_RHOST): %s", pam_strerror( pamh, e ) ); + return -1; + } e = pam_authenticate(pamh, 0); switch (e) { -- Jun Kuriyama // FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message