[rt-users] How could I do this scrip
dummycerberus at gmail.com
Thu Sep 27 04:26:24 EDT 2007
I think that method doesn't work for my purpose... but thank you anyway...
Now I'm trying to get the email of the real requestor with:
RT::User->LoadByEmail("user at mydomain");
If the user isn't yet in the database, then I lookup in the LDAP:
RT::User->LookupExternalUserInfo("mail", "user at mydomain");
But now, I don't know how load that info in the database and relate it
with the creator of the ticket... just like the LDAP overlay does...
Can anyone point me how to achieve that?
On 9/25/07, Gene LeDuc <gleduc at mail.sdsu.edu> wrote:
> I'm not sure if this answers your question, but you can get the Creator
> e-mail address like this:
> my $CreatorAddress = $self->TicketObj->CreatorObj->EmailAddress();
> At 01:02 AM 9/25/2007, Dummy cerberus wrote:
> >I'm working to show RT to upper management, because I want we to move
> >from old legacy issue tracking app to RT.
> >Now I'm receiving issues created at the legacy application from a
> >generic mail account issuetracking at mydomain.
> >I'm writing a scrip to be applied on create at the main queue of RT:
> >it has to take the email of the real requestor and change it on the RT
> >I've found $self->TicketObj->Creator to be the key field... but it is
> >a numeric value, and I have the email account of the creator...
> >moreover, most of the users aren't in DB, since they are supposed to
> >authenticate from LDAP and they haven't logged in the system...
> >How could I achieve this taks?
> >Best regards,
> >Community help: http://wiki.bestpractical.com
> >Commercial support: sales at bestpractical.com
> >Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> >Buy a copy at http://rtbook.bestpractical.com
> Gene LeDuc, GSEC
> Security Analyst
> San Diego State University
More information about the rt-users