[rt-users] RT could not load a valid user, and RT's configuration does not allow for the creation of a new user for your email

Drew Barnes barnesaw at ucrwcu.rwc.uc.edu
Thu Jun 11 08:37:21 EDT 2009



Kimberly McKinnis wrote:
>
> I turned on the permission for everyone to create tickets, so I’m 
> getting an autoresponse and account creation now. However… the auto 
> response template is ignoring the code that is supposed to send them a 
> password.
>
> {
>
> *RT::User::GenerateRandomNextChar = \&RT::User::_GenerateRandomNextChar;
>
> if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
>
> (!$Transaction->CreatorObj->Privileged) &&
>

I would look to make sure that users are being created as privileged, as 
that was the first thing that jumped out of the code at me.

> ($Transaction->CreatorObj->__Value('Password') eq '*NO-PASSWORD*')
>
> ) {
>
> my $user = RT::User->new($RT::SystemUser);
>
> $user->Load($Transaction->CreatorObj->Id);
>
> my ($stat, $pass) = $user->SetRandomPassword();
>
> if (!$stat) {
>
> $OUT .=
>
> "An internal error has occurred. RT was not able to set a password for 
> you.
>
> Please contact kmckinnis at tivo.com for assistance.";
>
> }
>
> $OUT .= "
>
> You can check the current status and history of your requests at:
>
> ".$RT::WebURL."
>
> When prompted, enter the following username and password:
>
> Username: ".$user->Name."
>
> Password: ".$pass."
>
> ";
>
> }
>
> }
>
> ------------------------------------------------------------------------
>
> *From:* rt-users-bounces at lists.bestpractical.com 
> [mailto:rt-users-bounces at lists.bestpractical.com] *On Behalf Of 
> *Kimberly McKinnis
> *Sent:* Wednesday, June 10, 2009 4:01 PM
> *To:* rt-users at lists.bestpractical.com
> *Subject:* [rt-users] RT could not load a valid user, and RT's 
> configuration does not allow for the creation of a new user for your email
>
> I had RT 3.4.5 running smoothly until the machine died a horrible disk 
> death. I recovered most everything, but I think I lost a scrip or 
> config somewhere. I have a scrip that auto adds new users to their 
> appropriate group based on the domain in their email. However, RT is 
> no longer auto creating users on incoming emails, and instead replies 
> with the following: “RT could not load a valid user, and RT's 
> configuration does not allow for the creation of a new user for your 
> email.”
>
> Does anyone know where this might be configured? I touch RT so 
> infrequently these days. Thanks!
>
> ~~
>
> Kimberly McKinnis
>
> System Operations Engineer
>
> Service Provider Division, TiVo Inc
>
> 408-519-9607
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com

-- 
Drew Barnes
Applications Analyst
Network Resources Department
Raymond Walters College
University of Cincinnati




More information about the rt-users mailing list