[rt-users] Setting a defaults for new users?
Atom Powers
APowers at PyramidBrew.com
Thu Feb 24 13:50:23 EST 2005
Well, I've tried. Can anybody tell me if this should work, of if there is
something wrong with what I'm doing?
In local/lib/RT/Interface/Web_Local.pm at about line 144 I have:
# Build an email address for the new user
if ($user_info{'Name'}) { $user_info{'EmailAddress'} =
$user_info{'Name'} ."\@mydomain.com"; }
In local/lib/RT/Interface/Email_Local.pm at about line 224 I have:
# if the $Username doesn't exist or is an email address, strip the
domain info
if (!$Username) { $Username = $Address; }
if ($Username =~ /\w+\@\w+.com/i) { ($Username) = $Username =~
/(\w+)\@\w+.com/i; }
----
Perfection is just a word I use occasionally with mustard.
Atom Powers
Systems Administrator
Pyramid Breweries Inc.
206.682.8322 x251
-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Atom Powers
Sent: Thursday, February 24, 2005 8:18 AM
To: rt-users at lists.fsck.com
Subject: [rt-users] Setting a defaults for new users?
I'm new to RT, and not much of a perl wiz. RT is set up and running with
WebAuth, but I need to change the way users are created and I can't find
which file to modify.
Users created when they log in to RT are created with the right username but
no email address. Users created when they email RT have the wrong username
(email) but have an email address. I have some users that are duplicated
because they were created both ways.
Where do I go to set $username =~ /(\w+)\@mydomain.com/i for users created in
email?
Where do I go to set $email = $username."@mydomain.com" for user created by
the WebUI?
----
Perfection is just a word I use occasionally with mustard.
Atom Powers
Systems Administrator
Pyramid Breweries Inc.
206.682.8322 x251
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
RT Administrator and Developer training is coming to your town soon! (Boston,
San Francisco, Austin, Sydney) Contact training at bestpractical.com for
details.
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
More information about the rt-users
mailing list