Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2002 17:12:01 -0500 (CDT)
From:      "Douglas K. Rand" <rand@meridian-enviro.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40124: Patch to wdm to allow long passwords
Message-ID:  <200207022212.g62MC1644035@delta.meridian-enviro.com>

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

>Number:         40124
>Category:       ports
>Synopsis:       Patch to wdm to allow long passwords
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 02 15:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Douglas K. Rand
>Release:        FreeBSD 4.5-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD delta.meridian-enviro.com 4.5-RELEASE-p4 FreeBSD 4.5-RELEASE-p4 #1: Wed Apr 24 15:36:06 CDT 2002 rand@delta.meridian-enviro.com:/usr/obj/usr/src/sys/DELTA i386


>Description:
	wdm allows passwords of LOGNAME_LEN characters, which is 9 characters.
	We often use longer passwords, and have always had to manually patch wdm
	to get them to work. Here is a replacement for patch-ai that uses the
	already defined PASS_LEN definition which is 128.
>How-To-Repeat:
	Change your password to be 10 characters or longer and try to login with wdm.
>Fix:

	Replace files/patch-ai in x11/wdm with this patch:


--- src/Greet.c.orig	Tue Sep 21 09:16:21 1999
+++ src/Greet.c	Tue Jul  2 17:03:12 2002
@@ -140,7 +140,7 @@
 extern int   wdmAnimations;
 
 static int      pipe_filedes[2];
-static char	name[LOGNAME_LEN + 1], password[LOGNAME_LEN + 1];
+static char	name[LOGNAME_LEN + 1], password[PASS_LEN + 1];
 static char     xsessionArg[256], exitArg[256];
 
 struct display *Save_d=NULL;
@@ -260,7 +260,7 @@
         }
         
         execle(wdmLogin, tmp, DisplayName, 
-			 Wm, Logo, HelpFile, DefaultUser, Bg, Animate,
+			 Wm, Logo, Bg, Animate, HelpFile, DefaultUser,
                          NULL, env);
         
         LogError ("Greet cannot exec %s\n", wdmLogin);
@@ -405,7 +405,7 @@
                                 "%s exit(%s) by %s\n", 
                                 PACKAGE, exitArg, name);
 #endif
-#if 0
+#if 1
                         SessionExit (d, UNMANAGE_DISPLAY, FALSE);
 #else
                         Debug ("Killing parent process %d\n", getppid());


>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?200207022212.g62MC1644035>