Fabio,
I'm not completely sure what you are asking, but if you're asking how to
extract the username from the email address, we do something similar.
You can override CanonicalizeUserInfo in {RT-HOME}/local/lib/RT/User_Local.pm.
...
my @emailAddress = $$args{'Name');
my @results = split('@', $emailAddress);
my $userName = $results[0];
# then you want to trim the last char off...
$userName = substr($userName, 0, length($name)-1);
#Finish it up
$$args{'Name'} = $userName;
...
Of course, some perl wizard could probably do that in one line using regex.
Note, that I only put the snippet to grab the username. There are examples of
assigning LDAP attributes on the wiki, http://wiki.bestpractical.com/view/LDAP.
Let me know if you have any more questions.
-Craig Patterson
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of "Fábio M.
Catunda"
Sent: Wednesday, February 13, 2008 8:16 AM
To: [email protected]
Subject: [rt-users] Mapping attributes.
Hi.
I would like to know if there is some way to map users to e-mail addresses.
I use LDAP for auth and I would like that a person that send an e-mail
to RT to have permission to see that ticket. The question is that the
Requestor is the e-mail of the sender, by this reason the person that
opened the ticket is not allowed to see that ticket.
For example:
Login: test
E-mail: [EMAIL PROTECTED]
When [EMAIL PROTECTED] send an e-mail to [EMAIL PROTECTED] I want the
requestor to be test and not [EMAIL PROTECTED]
I'm using RT 3.6.1-4 debian package.
Thanks for any help.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com