]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices/2007/005497.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices / 2007 / 005497.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] EnableAnopeWorkaround doesn't work with db imported
5 from anope-1.7.18 using enc_old
6 </TITLE>
7 <LINK REL="Index" HREF="index.html" >
8 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20EnableAnopeWorkaround%20doesn%27t%20work%20with%20db%20imported%0A%09from%20anope-1.7.18%20using%20enc_old&In-Reply-To=470E4411.20604%40fagrell.net">
9 <META NAME="robots" CONTENT="index,nofollow">
10 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
11 <LINK REL="Previous" HREF="005496.html">
12 <LINK REL="Next" HREF="005498.html">
13 </HEAD>
14 <BODY BGCOLOR="#ffffff">
15 <H1>[IRCServices] EnableAnopeWorkaround doesn't work with db imported
16 from anope-1.7.18 using enc_old</H1>
17 <B>Andrew Church</B>
18 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20EnableAnopeWorkaround%20doesn%27t%20work%20with%20db%20imported%0A%09from%20anope-1.7.18%20using%20enc_old&In-Reply-To=470E4411.20604%40fagrell.net"
19 TITLE="[IRCServices] EnableAnopeWorkaround doesn't work with db imported
20 from anope-1.7.18 using enc_old">achurch at achurch.org
21 </A><BR>
22 <I>Fri Oct 12 03:00:35 PDT 2007</I>
23 <P><UL>
24 <LI>Previous message: <A HREF="005496.html">[IRCServices] EnableAnopeWorkaround doesn't work with db imported
25 from anope-1.7.18 using enc_old
26 </A></li>
27 <LI>Next message: <A HREF="005498.html">[IRCServices] EnableAnopeWorkaround doesn't work with db imported
28 from anope-1.7.18 using enc_old
29 </A></li>
30 <LI> <B>Messages sorted by:</B>
31 <a href="date.html#5497">[ date ]</a>
32 <a href="thread.html#5497">[ thread ]</a>
33 <a href="subject.html#5497">[ subject ]</a>
34 <a href="author.html#5497">[ author ]</a>
35 </LI>
36 </UL>
37 <HR>
38 <!--beginarticle-->
39 <PRE>&gt;<i>Hi
40 </I>&gt;<i>
41 </I>&gt;<i>I'm currently running anope-1.7.18 which was earlier upgraded from an older version with the broken md5 encryption.
42 </I>&gt;<i>In order to use the old db in the new anope I use the enc_old option and that works fine.
43 </I>&gt;<i>
44 </I>&gt;<i>No I want to migrate this database to ircservices but I can't get it to recognize the passwords. I made two example users for a test:
45 </I>
46 Thanks for this report. Can you please try applying the patch below to
47 your Services source code (save this message to a file and give the command
48 &quot;patch -p0 &lt;file&quot; in the ircservices-5.1.0 directory, where &quot;file&quot; is the
49 path of the file you saved the message to), then recompiling and running
50 the converter again?
51
52 --Andrew Church
53 <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A>
54 <A HREF="http://achurch.org/">http://achurch.org/</A>
55
56 Index: tools/convert-epona.c
57 ===================================================================
58 RCS file: /var/local/cvsroot/ircservices/tools/convert-epona.c,v
59 retrieving revision 2.40
60 diff -u -r2.40 convert-epona.c
61 --- tools/convert-epona.c 10 Oct 2007 05:57:31 -0000 2.40
62 +++ tools/convert-epona.c 11 Oct 2007 18:03:00 -0000
63 @@ -116,6 +116,8 @@
64 ngi-&gt;os_priv = NP_SERVADMIN;
65 else if (tmp32 &amp; 0x00001000) /* NI_SERVICES_OPER */
66 ngi-&gt;os_priv = NP_SERVOPER;
67 + if (tmp32 &amp; 0x00004000)
68 + ngi-&gt;pass.cipher = sstrdup(&quot;md5&quot;);
69 if (tmp32 &amp; 0x00080000)
70 ngi-&gt;flags |= NF_NOOP;
71 SAFE(read_int16(&amp;tmp16, f));
72 @@ -485,6 +487,8 @@
73 ci-&gt;flags |= CF_SECURE;
74 if (tmp32 &amp; 0x00000080)
75 ci-&gt;flags |= CF_VERBOTEN;
76 + if (tmp32 &amp; 0x00000100)
77 + ci-&gt;pass.cipher = sstrdup(&quot;md5&quot;);
78 if (tmp32 &amp; 0x00000200)
79 ci-&gt;flags |= CF_NOEXPIRE;
80 if (tmp32 &amp; 0x00000800)
81 </PRE>
82
83
84 <!--endarticle-->
85 <HR>
86 <P><UL>
87 <!--threads-->
88 <LI>Previous message: <A HREF="005496.html">[IRCServices] EnableAnopeWorkaround doesn't work with db imported
89 from anope-1.7.18 using enc_old
90 </A></li>
91 <LI>Next message: <A HREF="005498.html">[IRCServices] EnableAnopeWorkaround doesn't work with db imported
92 from anope-1.7.18 using enc_old
93 </A></li>
94 <LI> <B>Messages sorted by:</B>
95 <a href="date.html#5497">[ date ]</a>
96 <a href="thread.html#5497">[ thread ]</a>
97 <a href="subject.html#5497">[ subject ]</a>
98 <a href="author.html#5497">[ author ]</a>
99 </LI>
100 </UL>
101
102 </body></html>