[rt-users] RT login with userid that is numeric

Jesse Vincent jesse at bestpractical.com
Wed Jun 23 16:14:28 EDT 2004


RT doesn't support numeric "names" for object. There are a number of
places in the product where we allow users to do things by name or by
id.  Using numeric names breaks that and could lead to unexpected
results.


On Wed, Jun 23, 2004 at 03:25:37PM -0400, david.falkenburger at rbc.com wrote:
> I was wondering if the login should be allowed to use an id that is entirely
> numeric. Does not seem to be any limitation anywhere except in autohandler:
> $session{'CurrentUser'}->Load($user);
>  
> Looking at the code for the RT::CurrentUser object, I found LoadByName and I
> changed the code to
> $session{'CurrentUser'}->LoadByName($user);
> and I am now fine. Should this be the default? When would a user logon using
> their actual record id number? Will doing this break anything somewhere
> else?
>  
> Thanks.
> Dave
> 
> ------------------------------------------------------------
> This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. 
> 
> Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.
> 
> ============================================================ 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
> http://bestpractical.com/services/training.html
> 
> Sign up early, as class space is limited. 


-- 



More information about the rt-users mailing list