Yeah, I got that installed, but I'm still getting those same errors.<br clear="all">Jonah Hirsch<br>-----------------------<br>
<br><br><div class="gmail_quote">On Thu, Jul 8, 2010 at 3:07 PM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Jul 08, 2010 at 12:10:33PM -0700, Jonah Hirsch wrote:<br>
> I realized that my line numbers will be different as I've edited the script.<br>
> Line 70: my $ldaphandle = RT::User::LdapConnect();<br>
<br>
</div>You seem to have missed the second paragraph which explains that you<br>
also need another extension they wrote<br>
<br>
Have you looked into<br>
<a href="http://search.cpan.org/dist/RT-Extension-LDAPImport/" target="_blank">http://search.cpan.org/dist/RT-Extension-LDAPImport/</a><br>
to see if it will do the syncing you want?<br>
<br>
-kevin<br>
<div class="im"><br>
><br>
> On Thu, Jul 8, 2010 at 12:07 PM, Jonah Hirsch <[1]<a href="mailto:crazydog115@gmail.com">crazydog115@gmail.com</a>> wrote:<br>
><br>
> We just migrated our RT system from an old installation on an old server to a new one that<br>
> will use LDAP to create users.<br>
> The issue is that we already have a good number of users on the old system, and would like<br>
> to keep them around.<br>
> I realize the most straight forward decision is to simply rename the users (and change their<br>
> email addresses), and when they are recreated when a user first logs in, just shred the old<br>
> accounts and replace the relations to the new ones.<br>
> I then got to thinking that there must be a way to update the users in RT through LDAP, not<br>
> only for this reason but for regular maintenance.<br>
> Anyway, I was googling around and found this old script from 2005<br>
</div>> [2]<a href="http://lists.bestpractical.com/pipermail/rt-devel/2005-August/007451.html" target="_blank">http://lists.bestpractical.com/pipermail/rt-devel/2005-August/007451.html</a><br>
<div class="im">> As it is 5 years old, it doesn't work well. I'm no RT developer, so it'd take a while to<br>
> figure out what needs to be changed, so my question is, would anyone out there be able to<br>
> update this script to work with a more current version of RT (as of emailing, 3.8.8). There<br>
> really only is one error, so I'm hoping it wouldn't take too long.<br>
> The one warning and one critical error I get are:<br>
><br>
> [Thu Jul 8 19:00:13 2010] [warning]: Use of inherited AUTOLOAD for non-method<br>
</div>> RT::User::LdapConnect() is deprecated at [3]<a href="http://updateldap.pm" target="_blank">updateldap.pm</a> line 70. ([4]<a href="http://updateldap.pm:70" target="_blank">updateldap.pm:70</a>)<br>
<div class="im">><br>
> [Thu Jul 8 19:00:13 2010] [crit]: Can't call method "_Accessible" on an undefined value at<br>
> /usr/local/share/perl/5.10.0/DBIx/SearchBuilder/Record.pm line 423.<br>
> (/opt/rt3/lib/RT.pm:382)<br>
><br>
> Can't call method "_Accessible" on an undefined value at<br>
> /usr/local/share/perl/5.10.0/DBIx/SearchBuilder/Record.pm line 423.<br>
><br>
> Thanks for the help.<br>
> Jonah Hirsch<br>
> -----------------------<br>
><br>
</div>> References<br>
><br>
> Visible links<br>
> 1. mailto:<a href="mailto:crazydog115@gmail.com">crazydog115@gmail.com</a><br>
> 2. <a href="http://lists.bestpractical.com/pipermail/rt-devel/2005-August/007451.html" target="_blank">http://lists.bestpractical.com/pipermail/rt-devel/2005-August/007451.html</a><br>
> 3. <a href="http://updateldap.pm/" target="_blank">http://updateldap.pm/</a><br>
> 4. <a href="http://updateldap.pm:70/" target="_blank">http://updateldap.pm:70/</a><br>
<div><div></div><div class="h5"><br>
> _______________________________________________<br>
> List info: <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel</a><br>
<br>
</div></div><br>_______________________________________________<br>
List info: <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel</a><br>
<br></blockquote></div><br>