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

ktm at rice.edu ktm at rice.edu
Wed Jul 25 16:09:45 EDT 2012


On Wed, Jul 25, 2012 at 12:31:48PM -0700, Thomas Sibley wrote:
> 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.
> 

I may be misremembering, but I ended up commenting this out because the
ability to change an Email address in the LDAP directory took place
immediately so RT ended up thinking that Email address could not be
created since it already existed. We are getting ready to upgrade to
3.8.12 from 3.8.5 and I will see if my recent changes to the
CanonicalizeEmailAddress() have addressed this problem.

Regards,
Ken



More information about the rt-users mailing list