[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

support of md5 passwords



Hi,

I tried enabling MD5 passwords on my Heimdal machine (Heimdal 0.5.1, Openssl
0.9.6i,  Debian 3.0, ia64) and found out that programs verifying local
passwords such as su or login stopped working. I found out the problem was
caused by the fact that the crypt() function from Openssl seems not to
support MD5 passwords and thus computes wrong hashes. The problem can be
fixed by ensuring that the system libcrypt library is used by linker before
libcrypto from openssl.  I'm not sure what's the right solution, as a quick
fix I created simple adaptations to Makefiles (see attachement).

--
Dan
diff -ru heimdal-0.5.1/appl/ftp/ftpd/Makefile.am /home/kouril/soft-local/heimdal-0.5.1/appl/ftp/ftpd/Makefile.am
--- heimdal-0.5.1/appl/ftp/ftpd/Makefile.am	Thu Sep  6 14:18:34 2001
+++ /home/kouril/soft-local/heimdal-0.5.1/appl/ftp/ftpd/Makefile.am	Wed Mar 12 12:16:39 2003
@@ -46,6 +46,7 @@
 man_MANS = ftpd.8 ftpusers.5
 
 LDADD = ../common/libcommon.a \
+	$(LIB_crypt) \
 	$(LIB_otp) \
 	$(LIB_gssapi) \
 	$(LIB_krb5) \
diff -ru heimdal-0.5.1/appl/ftp/ftpd/Makefile.in /home/kouril/soft-local/heimdal-0.5.1/appl/ftp/ftpd/Makefile.in
--- heimdal-0.5.1/appl/ftp/ftpd/Makefile.in	Mon Oct 21 19:49:17 2002
+++ /home/kouril/soft-local/heimdal-0.5.1/appl/ftp/ftpd/Makefile.in	Wed Mar 12 12:17:04 2003
@@ -229,6 +229,7 @@
 man_MANS = ftpd.8 ftpusers.5
 
 LDADD = ../common/libcommon.a \
+	$(LIB_crypt) \
 	$(LIB_otp) \
 	$(LIB_gssapi) \
 	$(LIB_krb5) \
diff -ru heimdal-0.5.1/appl/login/Makefile.am /home/kouril/soft-local/heimdal-0.5.1/appl/login/Makefile.am
--- heimdal-0.5.1/appl/login/Makefile.am	Mon Aug 19 19:00:36 2002
+++ /home/kouril/soft-local/heimdal-0.5.1/appl/login/Makefile.am	Wed Mar 12 12:11:34 2003
@@ -21,7 +21,8 @@
 		utmp_login.c			\
 		utmpx_login.c
 
-LDADD = $(LIB_otp) \
+LDADD = $(LIB_crypt) \
+	$(LIB_otp) \
 	$(LIB_kafs) \
 	$(top_builddir)/lib/krb5/libkrb5.la \
 	$(LIB_krb4) \
diff -ru heimdal-0.5.1/appl/login/Makefile.in /home/kouril/soft-local/heimdal-0.5.1/appl/login/Makefile.in
--- heimdal-0.5.1/appl/login/Makefile.in	Mon Oct 21 19:49:18 2002
+++ /home/kouril/soft-local/heimdal-0.5.1/appl/login/Makefile.in	Wed Mar 12 12:17:04 2003
@@ -219,7 +219,8 @@
 		utmpx_login.c
 
 
-LDADD = $(LIB_otp) \
+LDADD = $(LIB_crypt) \
+	$(LIB_otp) \
 	$(LIB_kafs) \
 	$(top_builddir)/lib/krb5/libkrb5.la \
 	$(LIB_krb4) \
diff -ru heimdal-0.5.1/appl/su/Makefile.am /home/kouril/soft-local/heimdal-0.5.1/appl/su/Makefile.am
--- heimdal-0.5.1/appl/su/Makefile.am	Tue Aug 28 10:31:22 2001
+++ /home/kouril/soft-local/heimdal-0.5.1/appl/su/Makefile.am	Wed Mar 12 12:10:48 2003
@@ -8,7 +8,8 @@
 bin_SUIDS = su
 su_SOURCES = su.c
 
-LDADD = $(LIB_kafs) \
+LDADD = $(LIB_crypt) \
+	$(LIB_kafs) \
 	$(top_builddir)/lib/krb5/libkrb5.la \
 	$(LIB_krb4) \
 	$(LIB_des) \
diff -ru heimdal-0.5.1/appl/su/Makefile.in /home/kouril/soft-local/heimdal-0.5.1/appl/su/Makefile.in
--- heimdal-0.5.1/appl/su/Makefile.in	Mon Oct 21 19:49:21 2002
+++ /home/kouril/soft-local/heimdal-0.5.1/appl/su/Makefile.in	Wed Mar 12 12:17:04 2003
@@ -205,7 +205,8 @@
 bin_SUIDS = su
 su_SOURCES = su.c
 
-LDADD = $(LIB_kafs) \
+LDADD = $(LIB_crypt) \
+	$(LIB_kafs) \
 	$(top_builddir)/lib/krb5/libkrb5.la \
 	$(LIB_krb4) \
 	$(LIB_des) \