[rt-users] username same but realname and email is different for existing user compare to ldap attribute, caused create ticket failed

Thomas Sibley trs at bestpractical.com
Wed Jul 25 15:31:48 EDT 2012


On 07/25/2012 12:26 PM, ktm at rice.edu wrote:
> #   We cannot assume uniqueness of Name for global RT use. ktm - 20091104
> #   #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 );
> #
> #       my ($val, $message) = $self->ValidateEmailAddress( $args{'EmailAddress'} );
> #       return (0, $message) unless ( $val );
> #   }
> #   else {
> #       $RT::Logger->warning( "$self couldn't check for pre-existing users");
> #   }

Ken, I only took a quick skim of your overlay once I noticed you were
overriding RT::User::Create.  The above commented out block is bound to
cause lots of problems in RT.



More information about the rt-users mailing list