1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] ircservices-
5.0.57 convert-db utility crashes when
5 converting from anope db.
7 <LINK REL=
"Index" HREF=
"index.html" >
8 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20ircservices-5.0.57%20convert-db%20utility%20crashes%20when%0A%09converting%20from%20anope%20db.&In-Reply-To=2614.24.179.41.151.1150771401.squirrel%40www.solid-ircd.com">
9 <META NAME=
"robots" CONTENT=
"index,nofollow">
10 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
11 <LINK REL=
"Previous" HREF=
"005153.html">
12 <LINK REL=
"Next" HREF=
"005155.html">
14 <BODY BGCOLOR=
"#ffffff">
15 <H1>[IRCServices] ircservices-
5.0.57 convert-db utility crashes when
16 converting from anope db.
</H1>
18 <A HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20ircservices-5.0.57%20convert-db%20utility%20crashes%20when%0A%09converting%20from%20anope%20db.&In-Reply-To=2614.24.179.41.151.1150771401.squirrel%40www.solid-ircd.com"
19 TITLE=
"[IRCServices] ircservices-5.0.57 convert-db utility crashes when
20 converting from anope db.">achurch at achurch.org
22 <I>Wed Jun
21 12:
49:
17 PDT
2006</I>
24 <LI>Previous message:
<A HREF=
"005153.html">[IRCServices] ircservices-
5.0.57 convert-db utility crashes
25 when converting from anope db.
27 <LI>Next message:
<A HREF=
"005155.html">[IRCServices] ircservices-
5.0.57 convert-db utility crashes
28 when converting from anope db.
30 <LI> <B>Messages sorted by:
</B>
31 <a href=
"date.html#5154">[ date ]
</a>
32 <a href=
"thread.html#5154">[ thread ]
</a>
33 <a href=
"subject.html#5154">[ subject ]
</a>
34 <a href=
"author.html#5154">[ author ]
</a>
39 <PRE> Okay, I took a look and (with a pointer from Craig McLure) discovered
40 that Anope still has the bug present in old versions of IRC Services (and
41 fixed in Services
4.5) which causes passwords to be encrypted incorrectly.
42 Try applying the patch below to your copy of Services; if it works, I'll
43 release a new version of Services with the patch included.
46 <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
47 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
49 ---------------------------------------------------------------------------
52 ===================================================================
53 RCS file: /var/local/cvsroot/ircservices/defs.h,v
54 retrieving revision
2.29.2.3
55 diff -u -r2.29
.2.3 defs.h
56 --- defs.h
8 Jan
2006 16:
48:
11 -
0000 2.29.2.3
57 +++ defs.h
21 Jun
2006 04:
05:
47 -
0000
59 * only). These commands are undocumented;
"use the source, Luke!
" */
60 #define DEBUG_COMMANDS
63 +/******** Other configuration ********/
65 +/* Define this to enable compatibility mode for encrypted passwords as
66 + * used in the Epona and Anope (through at least version
1.7.14) programs.
67 + * Note that this may have a detrimental effect on password security. */
68 +#define ANOPE_MD5_HACK
70 /*************************************************************************/
71 /******************* END OF USER-CONFIGURABLE SECTION ********************/
72 /*************************************************************************/
73 Index: modules/encryption/md5.c
74 ===================================================================
75 RCS file: /var/local/cvsroot/ircservices/modules/encryption/md5.c,v
76 retrieving revision
2.11.2.4
77 diff -u -r2.11
.2.4 md5.c
78 --- modules/encryption/md5.c
8 Jan
2006 16:
48:
13 -
0000 2.11.2.4
79 +++ modules/encryption/md5.c
21 Jun
2006 04:
05:
47 -
0000
82 static Module *module;
84 +#ifdef ANOPE_MD5_HACK
85 +# define XTOI(c) ((c)
>9 ? (c)-'A'+
10 : (c)-'
0')
88 /*************************************************************************/
90 /* Copyright (C)
1991-
2, RSA Data Security, Inc. Created
1991. All
93 /* Our own high-level routines. See encrypt.h for documentation. */
95 -#define XTOI(c) ((c)
>9 ? (c)-'A'+
10 : (c)-'
0')
97 static int md5_encrypt(const char *src, int len, char *dest, int size)
100 @@ -
376,
11 +
378,
21 @@
101 static int md5_check_password(const char *plaintext, const char *password)
104 +#ifdef ANOPE_MD5_HACK
109 if (encrypt(plaintext, strlen(plaintext), buf, sizeof(buf))
< 0)
111 if (memcmp(buf, password,
16) ==
0)
113 +#ifdef ANOPE_MD5_HACK
114 + for (i =
0; i
< 16; i +=
2)
115 + tmpbuf[i/
2] = XTOI(buf[i])
<<4 | XTOI(buf[i+
1]);
116 + if (memcmp(tmpbuf, password,
8) ==
0)
129 <LI>Previous message:
<A HREF=
"005153.html">[IRCServices] ircservices-
5.0.57 convert-db utility crashes
130 when converting from anope db.
132 <LI>Next message:
<A HREF=
"005155.html">[IRCServices] ircservices-
5.0.57 convert-db utility crashes
133 when converting from anope db.
135 <LI> <B>Messages sorted by:
</B>
136 <a href=
"date.html#5154">[ date ]
</a>
137 <a href=
"thread.html#5154">[ thread ]
</a>
138 <a href=
"subject.html#5154">[ subject ]
</a>
139 <a href=
"author.html#5154">[ author ]
</a>