From 04e293356472e13c75636bec4947c1c564339d3b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 14 Sep 1999 07:38:02 +0000 Subject: NTLM support integrated. svn path=/trunk/; revision=2554 --- Makefile.in | 16 +++++---- NEWS | 5 ++- acconfig.h | 3 ++ configure.in | 7 ++++ fetchmail-FAQ.html | 12 +++++-- fetchmail-features.html | 6 ++-- fetchmail.c | 3 ++ fetchmail.man | 6 ++++ imap.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++++- 9 files changed, 140 insertions(+), 12 deletions(-) diff --git a/Makefile.in b/Makefile.in index 0a96c59b..519b642e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -85,7 +85,8 @@ CTAGS = ctags protobjs = rcfile_y.o rcfile_l.o socket.o getpass.o pop2.o pop3.o imap.o \ etrn.o fetchmail.o env.o options.o daemon.o driver.o sink.o \ rfc822.o smtp.o xmalloc.o uid.o mxget.o md5c.o md5ify.o rpa.o \ - interface.o netrc.o base64.o error.o unmime.o conf.o checkalias.o + interface.o netrc.o base64.o error.o unmime.o conf.o checkalias.o \ + smbdes.o smbencrypt.o smbmd4.o smbutil.o objs = $(protobjs) $(extras) $(EXTRAOBJ) @@ -98,7 +99,8 @@ srcs = $(srcdir)/socket.c $(srcdir)/getpass.c $(srcdir)/pop2.c \ $(srcdir)/md5c.c $(srcdir)/md5ify.c $(srcdir)/rpa.c \ $(srcdir)/interface.c $(srcdir)/netrc.c $(srcdir)/base64.c \ $(srcdir)/error.c $(srcdir)/unmime.c $(srcdir)/conf.c \ - $(srcdir)/checkalias.c + $(srcdir)/checkalias.c $(srcdir)/smbdes.c $(srcdir)/smbencrypt.c \ + $(srcdir)/smbmd4.c $(srcdir)/smbutil.c .SUFFIXES: .SUFFIXES: .o .c .h .y .l .ps .dvi .info .texi @@ -220,14 +222,16 @@ parser = $(srcdir)/rcfile_l.l $(srcdir)/rcfile_y.y headers = $(srcdir)/fetchmail.h $(srcdir)/socket.h $(srcdir)/smtp.h \ $(srcdir)/mx.h $(srcdir)/md5.h $(srcdir)/md5global.h \ $(srcdir)/netrc.h $(srcdir)/tunable.h $(srcdir)/i18n.h \ - $(srcdir)/aclocal.m4 + $(srcdir)/aclocal.m4 $(srcdir)/ntlm.h $(srcdir)/smb.h \ + $(srcdir)/smbbyteorder.h $(srcdir)/smbdes.h $(srcdir)/smbencrypt.h \ + $(srcdir)/smbmd4.h extra = $(srcdir)/alloca.c $(srcdir)/getopt.[ch] $(srcdir)/getopt1.c \ $(srcdir)/strcasecmp.c $(srcdir)/strstr.c $(srcdir)/memmove.c docs = $(srcdir)/COPYING $(srcdir)/FEATURES $(srcdir)/fetchmail-features.html \ $(srcdir)/design-notes.html $(srcdir)/NOTES \ - $(srcdir)/INSTALL $(srcdir)/NEWS $(srcdir)/README \ - $(srcdir)/fetchmail.lsm $(srcdir)/sample.rcfile \ - $(srcdir)/*.man $(srcdir)/FAQ $(srcdir)/fetchmail-FAQ.html + $(srcdir)/INSTALL $(srcdir)/NEWS $(srcdir)/README \ + $(srcdir)/README.NTLM $(srcdir)/fetchmail.lsm $(srcdir)/sample.rcfile \ + $(srcdir)/*.man $(srcdir)/FAQ $(srcdir)/fetchmail-FAQ.html \ config = $(srcdir)/Makefile.in $(srcdir)/configure.in $(srcdir)/configure \ $(srcdir)/config.guess $(srcdir)/config.h.in $(srcdir)/config.sub \ $(srcdir)/acconfig.h diff --git a/NEWS b/NEWS index ef7f70af..b4319eb5 100644 --- a/NEWS +++ b/NEWS @@ -10,8 +10,11 @@ fetchmail-5.0.8 (): * Todd Sabin's patch to accept spaces in CRAM-MD5 names. -* Fix to endianness patch, by Dan Root via Lawrence Rogers. +* Fix to CRAM endianness patch, by Dan Root via Lawrence Rogers. * Suppress duplicates by message ID in multidrop mode. +* NTLM support for querying Microsoft Exchange servers, from Grant Edwards. + +There are 263 people on fetchmail-friends and 441 on fetchmail-announce. fetchmail-5.0.7 (Sat Aug 21 04:26:13 EDT 1999): * RPA support works again. diff --git a/acconfig.h b/acconfig.h index 48cd9abc..15440a3b 100644 --- a/acconfig.h +++ b/acconfig.h @@ -94,6 +94,9 @@ /* Define if you want RPA support compiled in */ #undef RPA_ENABLE +/* Define if you want NTLM authentication */ +#undef NTLM_ENABLE + /* Define if you want SDPS support compiled in */ #undef SDPS_ENABLE diff --git a/configure.in b/configure.in index 642d45e9..ace29821 100644 --- a/configure.in +++ b/configure.in @@ -262,6 +262,13 @@ AC_ARG_ENABLE(RPA, [with_RPA=no]) test "$with_RPA" = "yes" && AC_DEFINE(RPA_ENABLE) +### use option --enable-NTLM to compile in the NTLM support +AC_ARG_ENABLE(NTLM, + [ --enable-NTLM compile in NTLM authentication support], + [with_NTLM=$enableval], + [with_NTLM=no]) +test "$with_NTLM" = "yes" && AC_DEFINE(NTLM_ENABLE) + ### use option --enable-SDPS to compile in the SDPS support AC_ARG_ENABLE(SDPS, [ --enable-SDPS compile in SDPS protocol support], diff --git a/fetchmail-FAQ.html b/fetchmail-FAQ.html index 4f66e801..a184b953 100644 --- a/fetchmail-FAQ.html +++ b/fetchmail-FAQ.html @@ -10,7 +10,7 @@
Back to Fetchmail Home Page To Site Map -$Date: 1999/08/21 06:04:18 $ +$Date: 1999/09/14 07:38:00 $

Frequently Asked Questions About Fetchmail

@@ -1181,6 +1181,10 @@ for details. The solution is to upgrade your fetchmail.


S2. How can I use fetchmail with Microsoft Exchange?

+Fetchmail now supports the proprietary NTLM mode used with M$ Exchange +servers. To enable this, configure fetchmail with the --enable-NTLM +option and recompile it.

+ M$ Exchange violates the POP3 RFCs. Its LIST command does not reveal the real sizes of mail in the pop mailbox, but the sizes of the compressed versions in the exchange mail database (thanks to Arjan De @@ -1414,6 +1418,10 @@ document it, so nobody but their Windows clients can speak it.

This is a customer lock-in tactic; we recommend boycotting MSN as the only appropriate response.

+As of 5.0.8, we have support for the client side of NTLM +authentication. It's possible this may enable fetchmail to talk to +MSN; if so, somebody should report it so this FAQ can be corrected.

+


S10. How can I use fetchmail with SpryNet?

@@ -2457,7 +2465,7 @@ inactivity timeout.

Back to Fetchmail Home Page To Site Map -$Date: 1999/08/21 06:04:18 $ +$Date: 1999/09/14 07:38:00 $

Eric S. Raymond <esr@snark.thyrsus.com>
diff --git a/fetchmail-features.html b/fetchmail-features.html index b607de57..1cc54ab2 100644 --- a/fetchmail-features.html +++ b/fetchmail-features.html @@ -10,7 +10,7 @@
Back to Fetchmail Home Page To Site Map -$Date: 1999/06/08 07:20:17 $ +$Date: 1999/09/14 07:38:00 $

@@ -18,6 +18,8 @@

Since 5.0: