]>
Commit | Line | Data |
---|---|---|
3bd189cb JR |
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=470e6597.35673%40msgid.achurch.org"> | |
9 | <META NAME="robots" CONTENT="index,nofollow"> | |
10 | <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> | |
11 | <LINK REL="Previous" HREF="005497.html"> | |
12 | <LINK REL="Next" HREF="005499.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>Pierre Fagrell</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=470e6597.35673%40msgid.achurch.org" | |
19 | TITLE="[IRCServices] EnableAnopeWorkaround doesn't work with db imported | |
20 | from anope-1.7.18 using enc_old">pierre at fagrell.net | |
21 | </A><BR> | |
22 | <I>Thu Oct 11 12:36:11 PDT 2007</I> | |
23 | <P><UL> | |
24 | <LI>Previous message: <A HREF="005497.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="005499.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#5498">[ date ]</a> | |
32 | <a href="thread.html#5498">[ thread ]</a> | |
33 | <a href="subject.html#5498">[ subject ]</a> | |
34 | <a href="author.html#5498">[ author ]</a> | |
35 | </LI> | |
36 | </UL> | |
37 | <HR> | |
38 | <!--beginarticle--> | |
39 | <PRE>Andrew Church skrev: | |
40 | >><i> Hi | |
41 | </I>>><i> | |
42 | </I>>><i> I'm currently running anope-1.7.18 which was earlier upgraded from an older version with the broken md5 encryption. | |
43 | </I>>><i> In order to use the old db in the new anope I use the enc_old option and that works fine. | |
44 | </I>>><i> | |
45 | </I>>><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: | |
46 | </I>><i> | |
47 | </I>><i> Thanks for this report. Can you please try applying the patch below to | |
48 | </I>><i> your Services source code (save this message to a file and give the command | |
49 | </I>><i> "patch -p0 <file" in the ircservices-5.1.0 directory, where "file" is the | |
50 | </I>><i> path of the file you saved the message to), then recompiling and running | |
51 | </I>><i> the converter again? | |
52 | </I>><i> | |
53 | </I>><i> --Andrew Church | |
54 | </I>><i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A> | |
55 | </I>><i> <A HREF="http://achurch.org/">http://achurch.org/</A> | |
56 | </I>><i> | |
57 | </I>><i> Index: tools/convert-epona.c | |
58 | </I>><i> =================================================================== | |
59 | </I>><i> RCS file: /var/local/cvsroot/ircservices/tools/convert-epona.c,v | |
60 | </I>><i> retrieving revision 2.40 | |
61 | </I>><i> diff -u -r2.40 convert-epona.c | |
62 | </I>><i> --- tools/convert-epona.c 10 Oct 2007 05:57:31 -0000 2.40 | |
63 | </I>><i> +++ tools/convert-epona.c 11 Oct 2007 18:03:00 -0000 | |
64 | </I>><i> @@ -116,6 +116,8 @@ | |
65 | </I>><i> ngi->os_priv = NP_SERVADMIN; | |
66 | </I>><i> else if (tmp32 & 0x00001000) /* NI_SERVICES_OPER */ | |
67 | </I>><i> ngi->os_priv = NP_SERVOPER; | |
68 | </I>><i> + if (tmp32 & 0x00004000) | |
69 | </I>><i> + ngi->pass.cipher = sstrdup("md5"); | |
70 | </I>><i> if (tmp32 & 0x00080000) | |
71 | </I>><i> ngi->flags |= NF_NOOP; | |
72 | </I>><i> SAFE(read_int16(&tmp16, f)); | |
73 | </I>><i> @@ -485,6 +487,8 @@ | |
74 | </I>><i> ci->flags |= CF_SECURE; | |
75 | </I>><i> if (tmp32 & 0x00000080) | |
76 | </I>><i> ci->flags |= CF_VERBOTEN; | |
77 | </I>><i> + if (tmp32 & 0x00000100) | |
78 | </I>><i> + ci->pass.cipher = sstrdup("md5"); | |
79 | </I>><i> if (tmp32 & 0x00000200) | |
80 | </I>><i> ci->flags |= CF_NOEXPIRE; | |
81 | </I>><i> if (tmp32 & 0x00000800) | |
82 | </I>><i> ------------------------------------------------------------------ | |
83 | </I>><i> To unsubscribe or change your subscription options, visit: | |
84 | </I>><i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices</A> | |
85 | </I> | |
86 | ||
87 | Thankyou for the patch, the patching goes fine, but it won't compile: | |
88 | ||
89 | <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">ircd at poller</A>:~/ircservices-5.1.0$ patch -p0 <patchfil | |
90 | Hmm... Looks like a unified diff to me... | |
91 | The text leading up to this was: | |
92 | -------------------------- | |
93 | |<i>Index: tools/convert-epona.c | |
94 | </I>|<i>=================================================================== | |
95 | </I>|<i>RCS file: /var/local/cvsroot/ircservices/tools/convert-epona.c,v | |
96 | </I>|<i>retrieving revision 2.40 | |
97 | </I>|<i>diff -u -r2.40 convert-epona.c | |
98 | </I>|<i>--- tools/convert-epona.c 10 Oct 2007 05:57:31 -0000 2.40 | |
99 | </I>|<i>+++ tools/convert-epona.c 11 Oct 2007 18:03:00 -0000 | |
100 | </I>-------------------------- | |
101 | Patching file tools/convert-epona.c using Plan A... | |
102 | Hunk #1 succeeded at 116. | |
103 | Hunk #2 succeeded at 487. | |
104 | done | |
105 | ||
106 | I'm running under freebsd 6.2 using gmake 3.80: | |
107 | gcc -DSTATIC_MODULES -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -I.. -DCONVERT_DB -c convert-epona.c -o convert-epona.o | |
108 | convert-epona.c: In function `epona_load_chan': | |
109 | convert-epona.c:491: error: structure has no member named `pass' | |
110 | gmake[1]: *** [convert-epona.o] Error 1 | |
111 | gmake[1]: Leaving directory `/usr/home/ircd/ircservices-5.1.0/tools' | |
112 | gmake: *** [tools] Error 2 | |
113 | ||
114 | ||
115 | //Pierre Fagrell | |
116 | </PRE> | |
117 | ||
118 | ||
119 | <!--endarticle--> | |
120 | <HR> | |
121 | <P><UL> | |
122 | <!--threads--> | |
123 | <LI>Previous message: <A HREF="005497.html">[IRCServices] EnableAnopeWorkaround doesn't work with db imported | |
124 | from anope-1.7.18 using enc_old | |
125 | </A></li> | |
126 | <LI>Next message: <A HREF="005499.html">[IRCServices] EnableAnopeWorkaround doesn't work with db imported | |
127 | from anope-1.7.18 using enc_old | |
128 | </A></li> | |
129 | <LI> <B>Messages sorted by:</B> | |
130 | <a href="date.html#5498">[ date ]</a> | |
131 | <a href="thread.html#5498">[ thread ]</a> | |
132 | <a href="subject.html#5498">[ subject ]</a> | |
133 | <a href="author.html#5498">[ author ]</a> | |
134 | </LI> | |
135 | </UL> | |
136 | ||
137 | </body></html> |