xdm password problem & fix

Atom Smasher atom at smasher.org
Sat Feb 3 04:00:06 PST 2007


xorg-clients-6.9.0_3
xorg-6.9.0
xorg-server-6.9.0_5
FreeBSD 6.1-RELEASE

i just started playing with xdm, and on an account with a short password 
the xdm login works fine... but on an account with a longer password, 
login failed every time. i ggogled and found a few other people having the 
same problem but no fix.

attached is a patch (works fine in freeBSD ports) that seems to fix the 
problem.

DISCLAIMER: i suck at C. i don't even know enough to scrape by. i don't 
know if the attached patch will break anything or cause more problems than 
it fixes. it seems to work for me but i'd be grateful if a *real* C 
programmer could give me some critical feedback, or fix it for real.

thanks...


-- 
         ...atom

  ________________________
  http://atom.smasher.org/
  762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
  -------------------------------------------------

 	"Since I entered politics, I have chiefly had men's views
 	 confided to me privately. Some of the biggest men in the
 	 United States, in the Field of commerce and manufacture,
 	 are afraid of something. They know that there is a power
 	 somewhere so organized, so subtle, so watchful, so
 	 interlocked, so complete, so pervasive, that they better
 	 not speak above their breath when they speak in
 	 condemnation of it."
 		-- Woodrow Wilson, The New Freedom (1913)

-------------- next part --------------
--- programs/xdm/greeter/Login.h.orig	Fri Apr 23 15:54:43 2004
+++ programs/xdm/greeter/Login.h	Sat Feb  3 05:53:04 2007
@@ -123,8 +123,8 @@
 #endif
 
 #ifndef HAVE_PW_NAME_LEN
-#define NAME_LEN	32
-#define PASSWORD_LEN	32
+#define NAME_LEN	128
+#define PASSWORD_LEN	128
 #else
 #include <pwd.h>
 #define NAME_LEN	(_PW_NAME_LEN + 2)
-------------- next part --------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iQEcBAABCAAGBQJFxHeSAAoJEAx/d+cTpVci9wEH/27I+W0PpAhQ4hd23IN090Ht
vkZy9i8kAEGquA4yNmGIbrYoL3mHRUYENHNEBsuLmJ67znPnAF3UHQidMTvT5CdP
N4s9rQ65FBMz/Ei9GUsSC7pLeFz6HimFwwND3CSn1Av7nHWTG0+BPO++4cFpTipv
ApCvpCyx38t2tqIn2hRjYqpUlTr9ZXDr/q+eCqWQDyytvY7QV8mPV1A84J0VjTNk
4lvAyy7cIk3BiD/27TSTz1zsZ/SXtwS4j/JUXlwn9cuR9dRQCdkuAz+gg6R7QBjL
m1RL9rrFBgmprS0k7F3iHtBk2DynyxLoM1g73B9aN2MH0bsapv0kZVagRQX9RVg=
=SUaX
-----END PGP SIGNATURE-----


More information about the xorg mailing list