1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
diff -upr cmd5checkpw-0.30.orig/Makefile cmd5checkpw-0.30/Makefile
--- cmd5checkpw-0.30.orig/Makefile 2003-09-18 16:34:01.000000000 +0300
+++ cmd5checkpw-0.30/Makefile 2005-07-31 14:41:16.000000000 +0300
@@ -14,7 +14,7 @@ CFLAGS=-c -g -Wall -O3
LD=gcc
LDFLAGS=-g -o ${TARGET}
-default: main man cmd5checkpw
+default: cmd5checkpw
main: cmd5checkpw.c conf-qmail
sed s}QMAILHOME}"`head -1 conf-qmail`"}g cmd5checkpw.c > main.c
diff -upr cmd5checkpw-0.30.orig/cmd5checkpw.8 cmd5checkpw-0.30/cmd5checkpw.8
--- cmd5checkpw-0.30.orig/cmd5checkpw.8 2003-09-18 16:34:01.000000000 +0300
+++ cmd5checkpw-0.30/cmd5checkpw.8 2005-07-31 14:43:20.000000000 +0300
@@ -26,7 +26,7 @@ and a cram-md5 challenge terminated by \
.B cmd5checkpw
recalcuates a MD5 digest using the provided plain challenge
and the passwords from
-.IR /var/qmail/users/authuser
+.IR /etc/poppasswd
and compares it with response (2nd parameter). If they are the same
then
.B cmd5checkpw
@@ -50,7 +50,7 @@ exits 111.
.B cmd5checkpw
additionally compares the supplied password with the password in the
-.IR /var/qmail/user/authuser
+.IR /etc/poppasswd
file. Thus it can be used as a plain-text checkpassword
for PLAIN & LOGIN authtype (but we recommend using a crypted version for
security reasons). To use it, simply provide it with clear text password
@@ -68,7 +68,7 @@ interface.
Before invoking
.BR subprogram ,
.B cmd5checkpw
-does not set up anything. Just because users from /var/qmail/user/authuser does not
+does not set up anything. Just because users from /etc/poppasswd does not
have to exist in the system so setting their uid,gid etc is not possible.
Other
@@ -78,7 +78,7 @@ These effects must be documented;
applications will differ in their requirements.
.SH "FILES"
-.IR /var/qmail/users/authuser
+.IR /etc/poppasswd
- this file contains pairs of logins and clear text passwords
separated by ":". It looks like this:
diff -upr cmd5checkpw-0.30.orig/main.c cmd5checkpw-0.30/main.c
--- cmd5checkpw-0.30.orig/main.c 2003-09-18 16:34:01.000000000 +0300
+++ cmd5checkpw-0.30/main.c 2005-07-31 14:43:36.000000000 +0300
@@ -7,7 +7,7 @@
#include <unistd.h>
#define LINE_MAX 256
-#define SASLUSERFILE "/var/qmail/users/authuser"
+#define SASLUSERFILE "/etc/poppasswd"
#define READONLY "r"
char up[513];
int uplen;
|