Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2000 18:57:45 +0900
From:      Jun Kuriyama <kuriyama@FreeBSD.org>
To:        Current <FreeBSD-current@FreeBSD.org>
Subject:   PAM in ftpd.c
Message-ID:  <7mem2rqmhy.wl@waterblue.imgsrc.co.jp>

next in thread | raw e-mail | index | archive | help

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 <kuriyama@FreeBSD.org> // FreeBSD Project


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7mem2rqmhy.wl>