[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
changing configure.in
Hi,
I made some changes to configure.in to be able to include the LMHASH
extension I wrote earlier. Although a new configure script is built,
autoconf reports some warnings:
> autoconf
configure.in:587: AC_PROG_CPP was called before AC_PROG_CC
configure.in:2099: warning: AC_TRY_RUN called without default to allow
cross compiling
autoconf: Undefined macros:
configure.in:202:AC_ENABLE_STATIC
configure.in:204:AC_ENABLE_SHARED
configure.in:528:AC_LIBTOOL_WIN32_DLL
configure.in:529:AC_LIBTOOL_DLOPEN
configure.in:530:AC_PROG_LIBTOOL
configure can be run and processes my additions correctly but building
fails:
make[2]: LIBTOOL@: Command not found
make[2]: *** [ucgendat] Error 127
--
Norbert Klasen
DFN Directory Services tel: +49 7071 29 70335
ZDV, Universität Tübingen fax: +49 7071 29 5912
Wächterstr. 76, 72074 Tübingen http://www.directory.dfn.de
Germany norbert.klasen@zdv.uni-tuebingen.de
--- configure.in.orig Mon Dec 18 17:33:41 2000
+++ configure.in Mon Dec 18 17:06:51 2000
@@ -148,6 +148,7 @@
OL_ARG_ENABLE(slapd,[ --enable-slapd enable building slapd], yes)dnl
OL_ARG_ENABLE(cleartext,[ --enable-cleartext enable cleartext passwords], yes)dnl
OL_ARG_ENABLE(crypt,[ --enable-crypt enable crypt(3) passwords], auto)dnl
+OL_ARG_ENABLE(lmhash,[ --enable-lmhash enable LAN Manager passwords], auto)dnl
OL_ARG_ENABLE(kpasswd,[ --enable-kpasswd enable Kerberos password verification], no)dnl
OL_ARG_ENABLE(spasswd,[ --enable-spasswd enable (Cyrus) SASL password verification], no)dnl
OL_ARG_ENABLE(modules,[ --enable-modules enable dynamic module support], no)dnl
@@ -378,6 +379,12 @@
fi
fi
+if test $ol_enable_lmhash = yes ; then
+ if test $ol_with_tls = no ; then
+ AC_MSG_ERROR([LAN Manager passwords require OpenSSL])
+ fi
+fi
+
if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
if test $ol_with_kerberos = no ; then
AC_MSG_ERROR([options require --with-kerberos])
@@ -1071,6 +1078,20 @@
elif test $ol_with_tls != no ; then
AC_ERROR([Could not locate TLS/SSL package])
+fi
+
+dnl ----------------------------------------------------------------
+dnl LAN Manger hashes in password checking requires DES from OpenSSL
+if test $ol_enable_lmhash != no; then
+ if test $ol_link_tls = yes ; then
+ AC_DEFINE(SLAPD_LMHASH, 1, [define to support LAN Manager passwords])
+
+ elif test $ol_enable_lmhash = auto ; then
+ AC_WARN([Could not locate required TLS/SSL package for LAN Manager passwords ])
+
+ elif test $ol_enable_lmhash = yes ; then
+ AC_ERROR([LAN Manager passwords require TLS/SSL package])
+ fi
fi
dnl ----------------------------------------------------------------