[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

2009-06-10 Thread Kimberly McKinnis
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: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [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

2009-06-10 Thread Kimberly McKinnis
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) 
($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 kmckin...@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-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kimberly McKinnis
Sent: Wednesday, June 10, 2009 4:01 PM
To: rt-users@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: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com