Hi all,
I’ve been adding an managing users through RTs web interface without
problem. These users have all had email ID’s
of the form .dept.univ.edu
Recently, we’ve had to give RT access to personnel from central campus
who have email ID’s of the form .univ.edu. However, trying
to add these users returns the following error:
User : Email address in use
I am running version 3.8.1 with mySQL DB backend. The following
appears in my RT_SiteConfig.pm
------------------- start code
Set($WebBaseURL , “https://rt3.dept.univ.edu”);
Set($rtname , “dept.univ.edu”);
Set($Organization , “dept.univ.edu”);
------------------- end code
-
In the file $RT3_INSTALL/lib/RT/User_Overlay.pm
------------------- start code
#SANITY CHECK THE NAME AND ABORT IF IT’S TAKEN
if ($RT::SystemUser) { #This only works if RT::SystemUser has
been defined
my $TempUser = RT::User->new($RT::SystemUser);
$TempUser->Load( $args{‘Name’} );
return ( 0, $self->loc(‘Name in use’) ) if ( $TempUser->Id );
return ( 0, $self->loc('Email address in use') )
unless ( $self-
ValidateEmailAddress( $args{‘EmailAddress’} ) );
}
else {
$RT::Logger->warning( “$self couldn’t check for pre-
existing users”);
}
------------------- end code
and
------------------- start code
=head2 SetEmailAddress
Check to make sure someone else isn’t using this email address
already
so that a better email address can be returned
=cut
sub SetEmailAddress {
my $self = shift;
my $Value = shift;
if ( $self->ValidateEmailAddress( $Value ) ) {
return $self->_Set( Field => 'EmailAddress', Value =>
$Value );
} else {
return ( 0, $self->loc(‘Email address in use’) )
}
}
------------------- end code
Help much appreciated,
Ritesh Sood.
This happens on our site too. Ususally just means they have been auto
created as a user on the RT instance when emailing through a request. In
the Web Interface instead of creating a new user just search for their email
address and update the existing user.
Regards,
*Aaron Guise
027 212 6638
aaron@guise.net.nzOn Tue, Mar 10, 2009 at 3:56 PM, Ritesh Sood baralachala@gmail.com wrote:
Hi all,
I’ve been adding an managing users through RTs web interface without
problem. These users have all had email ID’s
of the form .dept.univ.edu
Recently, we’ve had to give RT access to personnel from central campus
who have email ID’s of the form .univ.edu. However, trying
to add these users returns the following error:
User : Email address in use
I am running version 3.8.1 with mySQL DB backend. The following
appears in my RT_SiteConfig.pm
------------------- start code
Set($WebBaseURL , “https://rt3.dept.univ.edu”);
Set($rtname , “dept.univ.edu”);
Set($Organization , “dept.univ.edu”);
------------------- end code
- In the file $RT3_INSTALL/lib/RT/User_Overlay.pm
------------------- start code
#SANITY CHECK THE NAME AND ABORT IF IT’S TAKEN
if ($RT::SystemUser) { #This only works if RT::SystemUser has
been defined
my $TempUser = RT::User->new($RT::SystemUser);
$TempUser->Load( $args{‘Name’} );
return ( 0, $self->loc(‘Name in use’) ) if ( $TempUser->Id );
return ( 0, $self->loc('Email address in use') )
unless ( $self-
ValidateEmailAddress( $args{‘EmailAddress’} ) );
}
else {
$RT::Logger->warning( “$self couldn’t check for pre-
existing users”);
}
------------------- end code
and
------------------- start code
=head2 SetEmailAddress
Check to make sure someone else isn’t using this email address
already
so that a better email address can be returned
=cut
sub SetEmailAddress {
my $self = shift;
my $Value = shift;
if ( $self->ValidateEmailAddress( $Value ) ) {
return $self->_Set( Field => 'EmailAddress', Value =>
$Value );
} else {
return ( 0, $self->loc(‘Email address in use’) )
}
}
------------------- end code
Help much appreciated,
Ritesh Sood.
The rt-users Archives
Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com