ports/101680: mail/poppassd: update of passwd prompts for pam_passwdqc.so

Ted Mittelstaedt tedm at ipinc.net
Wed Aug 9 03:00:32 UTC 2006


>Number:         101680
>Category:       ports
>Synopsis:       mail/poppassd: update of passwd prompts for pam_passwdqc.so
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 09 03:00:27 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Ted Mittelstaedt
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
Internet Partners, Inc.
>Environment:
System: FreeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 10 13:19:14 PST 2005 tedm at ipinc.net


	
>Description:
	

When enabling the strong password checking by uncommenting
pam_passwdqc.so in /etc/pam.d/passwd, the passwd program's prompts are
changed yet again thus breaking poppassd. 

This patch fixes that, it is made against the version of poppassd.c that results
from the FreeBSD patches already included in ports being applied.

It would be -highly- desirable if the port maintainer could contact the developer
of this program, John Norstad, and feed the BSD patches back to him for inclusion
in the master distribution, or barring that, produce a patched distribution and
feed that back to Qualcomm for their Eudora website.

This should also be checked with the mail/poppwd port.

>How-To-Repeat:
	

>Fix:

--- /usr/ports/mail/poppassd/work/poppassd/poppassd.c	Tue Aug  8 19:28:03 2006
+++ /usr/ports/mail/poppassd/work/poppassd/poppassd.c.orig	Tue Aug  8 13:44:06 2006
@@ -112,7 +112,7 @@
 
 #define SUCCESS 1
 #define FAILURE 0
-#define BUFSIZE 768
+#define BUFSIZE 512
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -166,14 +166,12 @@
 
 static char *P2[] =
    {"\nNew password:",
-    "\n*\n*\n*\n*\n*\n*\n*\n*\n*\n*\n*\nEnter new password: ",
     "\n*'s New password:",
     ""};
 
 static char *P3[] =
    {"\nRe-enter new password:",
     "\nRetype new password:",
-    "\nRe-type new password: ",
     "\nEnter the new password again:",
     "\n*Re-enter *'s new password:",
     "\nVerify:",
@@ -285,7 +283,7 @@
 		{
 			syslog (LOG_ERR, "failed attempt by %s", user);
 			if (*emess == '\0') {
-				WriteToClient ("500 Password change unsuccessful, try a different password." );
+				WriteToClient ("500 Unable to change password." );
 			} else {
 				WriteToClient ("500 %s", emess);
 			}

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list