Hi,<br><br>i'm using this tiny scrip:<br><br>#!/usr/bin/perl<br>use strict;<br>use warnings;<br><br>BEGIN { die "You must define \$RT_HOME\n"<br> unless exists $ENV{RT_HOME} };<br>use lib "$ENV{RT_HOME}/lib";
<br><br>use RT;<br>RT::LoadConfig();<br>RT::Init();<br><br>use RT::Interface::CLI qw(GetCurrentUser loc);<br>use RT::Tickets;<br><br>my $CurrentUser = GetCurrentUser();<br>die loc("No RT user found.\n") unless ($CurrentUser->Id);
<br>die "We need exactly 2 Arguments, Name & Email\n" unless ($#ARGV==1);<br>my $UserName=shift @ARGV;<br>my $Email=shift @ARGV;<br>my $User = RT::User->new($CurrentUser);<br>my ($id,$Message)=$User->Create(Name=>$UserName,EmailAddress=>$Email,Privileged=>1,Password=>'changeme');
<br>if ($id){<br> print $Message."\n";<br> }<br> else{<br> print"This is a error!\n$Message\n";<br> }<br><br>Its from jesse from an older training. its working fine for me.
<br><br>Torsten<br><br><div><span class="gmail_quote">2007/3/17, Rick Phillips <<a href="mailto:rickp@suntech.net.au">rickp@suntech.net.au</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have looked hard at the wiki and done extensive searching on the<br>general web but can't seem to find any reference as to how to bulk<br>upload users. In can dump the users directly into the database (I am<br>assuming) but the passwords will need to be encrypted. I have a utility
<br>which will bulk encrypt passwords using md5sum. Is this the encryption<br>method for RT? Will I need to update any other table other than<br>RT-users? In our situation, it's a "closed shop" and the potential
<br>users are all known.<br><br>I have been trying to make the MS active directory authentication work<br>but have had to give up on that.<br><br>I am using (via RPM install on Mandriva) version 3.4.5.<br><br>Thanks in advance,
<br><br>Rick<br><br>_______________________________________________<br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br><br>
Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><br>Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br><br><br>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
<br>Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>MFG<br><br>Torsten Brumm<br><br><a href="http://www.torsten-brumm.de">http://www.torsten-brumm.de
</a>