Date: Sun, 8 Jul 2001 11:54:40 +0900 (JST) From: Motoyuki Konno <motoyuki@bsdclub.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/28803: ports/comms/conserver does not support ##user password Message-ID: <200107080254.f682seg74745@sakura.mk.bsdclub.org>
next in thread | raw e-mail | index | archive | help
>Number: 28803 >Category: ports >Synopsis: ports/comms/conserver does not support ##user password >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 07 20:00:16 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Motoyuki Konno >Release: FreeBSD 4.3-STABLE i386 >Organization: BSD Club >Environment: System: FreeBSD sakura.mk.bsdclub.org 4.3-STABLE FreeBSD 4.3-STABLE #5: Thu Jul 5 09:50:02 JST 2001 motoyuki@sakura.mk.bsdclub.org:/usr/obj/usr/src/sys/SAKURA i386 >Description: According to conserver.cf(5), conserver supports ##user form passwd, which means conserver use the user's password. But, FreeBSD's conserver does not support ##user form password. >How-To-Repeat: Install this port and try to use ##user form password in conserver.cf. >Fix: Apply the following patch. --- etc/conserver/group.c.orig Thu Aug 3 03:39:42 2000 +++ etc/conserver/group.c Sat Jul 7 16:10:53 2001 @@ -228,6 +228,18 @@ struct passwd *pwd; char *pcEPass, *pcWord; { + if (pcEPass && '#' == pcEPass[0] && '#' == pcEPass[1] && '\0' != pcEPass[2] && (MAXLOGNAME + 1) > strlen(pcEPass)) { + /* If the encrypted password field from the config file + * looks like ##USER, look up the password for that + * user for the match. + */ + pwd = getpwnam(pcEPass+2); + if ((struct passwd *) NULL == pwd) { + return 0; + } + pcEPass = (char *)0; + } + if (pcEPass && '\0' != pcEPass[0]) if (MD5CheckPass(pcEPass, pcWord)) return 1; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107080254.f682seg74745>