We just migrated our RT system from an old installation on an old server to a new one that will use LDAP to create users.<div><br></div><div>The issue is that we already have a good number of users on the old system, and would like to keep them around.</div>
<div><br></div><div>I realize the most straight forward decision is to simply rename the users (and change their email addresses), and when they are recreated when a user first logs in, just shred the old accounts and replace the relations to the new ones.</div>
<div><br></div><div>I then got to thinking that there must be a way to update the users in RT through LDAP, not only for this reason but for regular maintenance.</div><div><br></div><div>Anyway, I was googling around and found this old script from 2005</div>
<div><a href="http://lists.bestpractical.com/pipermail/rt-devel/2005-August/007451.html">http://lists.bestpractical.com/pipermail/rt-devel/2005-August/007451.html</a></div><div>As it is 5 years old, it doesn't work well. I'm no RT developer, so it'd take a while to figure out what needs to be changed, so my question is, would anyone out there be able to update this script to work with a more current version of RT (as of emailing, 3.8.8). There really only is one error, so I'm hoping it wouldn't take too long.</div>
<div><br></div><div>The one warning and one critical error I get are:</div><div><div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<font class="Apple-style-span" face="'courier new', monospace">[Thu Jul 8 19:00:13 2010] [warning]: Use of inherited AUTOLOAD for non-method RT::User::LdapConnect() is deprecated at <a href="http://updateldap.pm">updateldap.pm</a> line 70. (<a href="http://updateldap.pm:70">updateldap.pm:70</a>)</font></blockquote>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<font class="Apple-style-span" face="'courier new', monospace">[Thu Jul 8 19:00:13 2010] [crit]: Can't call method "_Accessible" on an undefined value at /usr/local/share/perl/5.10.0/DBIx/SearchBuilder/Record.pm line 423. (/opt/rt3/lib/RT.pm:382)</font></blockquote>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<font class="Apple-style-span" face="'courier new', monospace">Can't call method "_Accessible" on an undefined value at /usr/local/share/perl/5.10.0/DBIx/SearchBuilder/Record.pm line 423.</font></blockquote>
</div><div><br></div><div>Thanks for the help.</div><div><br></div><div>Jonah Hirsch</div><div>-----------------------<br>
</div>