]> jfr.im git - irc.git/blame - software/RELEASES/ircservices/achurch.org/services/lists/ircservices/2007/005498.html
init
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices / 2007 / 005498.html
CommitLineData
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&gt;&gt;<i> Hi
41</I>&gt;&gt;<i>
42</I>&gt;&gt;<i> I'm currently running anope-1.7.18 which was earlier upgraded from an older version with the broken md5 encryption.
43</I>&gt;&gt;<i> In order to use the old db in the new anope I use the enc_old option and that works fine.
44</I>&gt;&gt;<i>
45</I>&gt;&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:
46</I>&gt;<i>
47</I>&gt;<i> Thanks for this report. Can you please try applying the patch below to
48</I>&gt;<i> your Services source code (save this message to a file and give the command
49</I>&gt;<i> &quot;patch -p0 &lt;file&quot; in the ircservices-5.1.0 directory, where &quot;file&quot; is the
50</I>&gt;<i> path of the file you saved the message to), then recompiling and running
51</I>&gt;<i> the converter again?
52</I>&gt;<i>
53</I>&gt;<i> --Andrew Church
54</I>&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A>
55</I>&gt;<i> <A HREF="http://achurch.org/">http://achurch.org/</A>
56</I>&gt;<i>
57</I>&gt;<i> Index: tools/convert-epona.c
58</I>&gt;<i> ===================================================================
59</I>&gt;<i> RCS file: /var/local/cvsroot/ircservices/tools/convert-epona.c,v
60</I>&gt;<i> retrieving revision 2.40
61</I>&gt;<i> diff -u -r2.40 convert-epona.c
62</I>&gt;<i> --- tools/convert-epona.c 10 Oct 2007 05:57:31 -0000 2.40
63</I>&gt;<i> +++ tools/convert-epona.c 11 Oct 2007 18:03:00 -0000
64</I>&gt;<i> @@ -116,6 +116,8 @@
65</I>&gt;<i> ngi-&gt;os_priv = NP_SERVADMIN;
66</I>&gt;<i> else if (tmp32 &amp; 0x00001000) /* NI_SERVICES_OPER */
67</I>&gt;<i> ngi-&gt;os_priv = NP_SERVOPER;
68</I>&gt;<i> + if (tmp32 &amp; 0x00004000)
69</I>&gt;<i> + ngi-&gt;pass.cipher = sstrdup(&quot;md5&quot;);
70</I>&gt;<i> if (tmp32 &amp; 0x00080000)
71</I>&gt;<i> ngi-&gt;flags |= NF_NOOP;
72</I>&gt;<i> SAFE(read_int16(&amp;tmp16, f));
73</I>&gt;<i> @@ -485,6 +487,8 @@
74</I>&gt;<i> ci-&gt;flags |= CF_SECURE;
75</I>&gt;<i> if (tmp32 &amp; 0x00000080)
76</I>&gt;<i> ci-&gt;flags |= CF_VERBOTEN;
77</I>&gt;<i> + if (tmp32 &amp; 0x00000100)
78</I>&gt;<i> + ci-&gt;pass.cipher = sstrdup(&quot;md5&quot;);
79</I>&gt;<i> if (tmp32 &amp; 0x00000200)
80</I>&gt;<i> ci-&gt;flags |= CF_NOEXPIRE;
81</I>&gt;<i> if (tmp32 &amp; 0x00000800)
82</I>&gt;<i> ------------------------------------------------------------------
83</I>&gt;<i> To unsubscribe or change your subscription options, visit:
84</I>&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices</A>
85</I>
86
87Thankyou 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 &lt;patchfil
90Hmm... Looks like a unified diff to me...
91The 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>--------------------------
101Patching file tools/convert-epona.c using Plan A...
102Hunk #1 succeeded at 116.
103Hunk #2 succeeded at 487.
104done
105
106I'm running under freebsd 6.2 using gmake 3.80:
107gcc -DSTATIC_MODULES -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -I.. -DCONVERT_DB -c convert-epona.c -o convert-epona.o
108convert-epona.c: In function `epona_load_chan':
109convert-epona.c:491: error: structure has no member named `pass'
110gmake[1]: *** [convert-epona.o] Error 1
111gmake[1]: Leaving directory `/usr/home/ircd/ircservices-5.1.0/tools'
112gmake: *** [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>