Commit 0112e3c0 0112e3c07a2b8fcfb642ace4b880575f86fcf933 by Sergey Poznyakoff

Add preauth.c

1 parent d2ff5151
1 2007-12-03 Sergey Poznyakoff <gray@gnu.org.ua> 1 2007-12-03 Sergey Poznyakoff <gray@gnu.org.ua>
2 2
3 * NEWS: Update.
3 * gnulib.modules: Add des. Sort lines. 4 * gnulib.modules: Add des. Sort lines.
4 * imap4d/Makefile.am (imap4d_SOURCES): Add preauth.c 5 * imap4d/Makefile.am (imap4d_SOURCES): Add preauth.c
6 * imap4d/preauth.c: New file.
5 * imap4d/authenticate.c (imap4d_authenticate): Use 7 * imap4d/authenticate.c (imap4d_authenticate): Use
6 imap4d_session_setup. 8 imap4d_session_setup.
7 * imap4d/imap4d.c (imap4d_session_setup) 9 * imap4d/imap4d.c (imap4d_session_setup)
......
1 GNU mailutils NEWS -- history of user-visible changes. 2007-11-30 1 GNU mailutils NEWS -- history of user-visible changes. 2007-12-03
2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
3 See the end of file for copying conditions. 3 See the end of file for copying conditions.
4 4
...@@ -146,6 +146,33 @@ Previous versions incorrectly understood such an URL as `a/b' ...@@ -146,6 +146,33 @@ Previous versions incorrectly understood such an URL as `a/b'
146 146
147 * Fixed APOP handling. 147 * Fixed APOP handling.
148 148
149 * imap4d supports PREAUTH mode.
150
151 Three mechanisms are provided for authentifying the connection in
152 PREAUTH mode:
153
154 1. stdio - PREAUTH mode is enabled automatically if imap4d is started
155 from command line in interactive mode (-i command line
156 option). The current login name is used as the user name.
157
158 2. ident - The remote machine is asked about the requester identity
159 using the identification protocol (RFC 1413). Both plaintext and
160 DES encrypted replies are understood.
161
162 3. prog - Imap4d invokes an external program to authenticate the
163 connection. Four arguments are supplied to the program:
164
165 1) Remote IP address in dotted-quad notation;
166 2) Remote port number;
167 3) Local IP address (currently "0.0.0.0");
168 4) Local port number.
169
170 If the connection is authenticated, the program should print the
171 user name, followed by a newline character, on its standard
172 output and exit with code 0.
173
174 Otherwise, it shoud exit with a non-zero exit code.
175
149 * Remove v0.6 compatibility layer. 176 * Remove v0.6 compatibility layer.
150 177
151 178
......