Auto Login Link in autoreply with password

I am trying to setup my autoreply so that it has a direct link for the requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.

this is the link that the requestor gets backhttp://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with every autoreply that will take the requestor straight to the ticket on the web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

Why not use: $pass instead of:&pass={$Transaction->CreatorObj->__Value

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnetté, Mark Reinhardt, Jens Wollesen, Klaus Jaeger (stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael KuehneVon: rt-users-bounces@lists.bestpractical.com rt-users-bounces@lists.bestpractical.com
An: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com
Gesendet: Sun Aug 29 23:01:02 2010
Betreff: [rt-users] Auto Login Link in autoreply with password

I am trying to setup my autoreply so that it has a direct link for the requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb http://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with every autoreply that will take the requestor straight to the ticket on the web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

&pass= is part of the link to be displayed {{$Transaction->CreatorObj->__Value} is the variable data which the system should fetchOn 30/08/2010, at 7:38 AM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:

Why not use: $pass instead of:&pass={$Transaction->CreatorObj->__Value

Torsten

Von: rt-users-bounces@lists.bestpractical.commailto:rt-users-bounces@lists.bestpractical.com <rt-users-bounces@lists.bestpractical.commailto:rt-users-bounces@lists.bestpractical.com>
An: rt-users@lists.bestpractical.commailto:rt-users@lists.bestpractical.com <rt-users@lists.bestpractical.commailto:rt-users@lists.bestpractical.com>
Gesendet: Sun Aug 29 23:01:02 2010
Betreff: [rt-users] Auto Login Link in autoreply with password

I am trying to setup my autoreply so that it has a direct link for the requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with every autoreply that will take the requestor straight to the ticket on the web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnetté, Mark Reinhardt, Jens Wollesen, Klaus Jäger (stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz: Contern/Luxemburg, Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne

Hi,
looks like we didn’t talked about the same…

You like to do this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

No idea what is stored here: $Transaction->CreatorObj->__Value('Password’
but from the output you sent, it looks like the md5 of the password:

You should try this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

inside $pass you sent out the plain text password and i think, the login
method with the link will also have the plaintext pass.

Torsten2010/8/29 Codatel Lists lists@codatel.com.au

I am trying to setup my autoreply so that it has a direct link for the
requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the
past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually
goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with
every autoreply that will take the requestor straight to the ticket on the
web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

MFG

Torsten Brumm

http://www.brumm.me

I have tried that and I get the following result.

The password is blank

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=On 30/08/2010, at 7:38 PM, Torsten Brumm wrote:

Hi,
looks like we didn’t talked about the same…

You like to do this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

No idea what is stored here: $Transaction->CreatorObj->__Value(‘Password’ but from the output you sent, it looks like the md5 of the password:

You should try this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

inside $pass you sent out the plain text password and i think, the login method with the link will also have the plaintext pass.

Torsten
2010/8/29 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
I am trying to setup my autoreply so that it has a direct link for the requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with every autoreply that will take the requestor straight to the ticket on the web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

OK, the mail sent out, does it have the password posted?

Is this the correct link you created?
http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

Or like this?
http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=
$pass

??2010/8/30 Codatel Lists lists@codatel.com.au

I have tried that and I get the following result.

The password is blank

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

On 30/08/2010, at 7:38 PM, Torsten Brumm wrote:

Hi,
looks like we didn’t talked about the same…

You like to do this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

No idea what is stored here: $Transaction->CreatorObj->__Value('Password’
but from the output you sent, it looks like the md5 of the password:

You should try this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

inside $pass you sent out the plain text password and i think, the login
method with the link will also have the plaintext pass.

Torsten
2010/8/29 Codatel Lists lists@codatel.com.au

I am trying to setup my autoreply so that it has a direct link for the
requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the
past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually
goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with
every autoreply that will take the requestor straight to the ticket on the
web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this
string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for
you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!


MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de

MFG

Torsten Brumm

http://www.brumm.me

This is what the RT replied back to me in the email

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

there was no password

FYI the Auto generation script has no effect here as the requestor is an existing email address

so the

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

line is outside the password auto genrating script.

I believe the $pass parameter has something to do with the script but it is not being understood as the line I used is not within that part of the script.On 30/08/2010, at 7:48 PM, Torsten Brumm wrote:

OK, the mail sent out, does it have the password posted?

Is this the correct link you created?
http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

Or like this?
http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=$pass

??
2010/8/30 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
I have tried that and I get the following result.

The password is blank

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

On 30/08/2010, at 7:38 PM, Torsten Brumm wrote:

Hi,
looks like we didn’t talked about the same…

You like to do this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

No idea what is stored here: $Transaction->CreatorObj->__Value(‘Password’ but from the output you sent, it looks like the md5 of the password:

You should try this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

inside $pass you sent out the plain text password and i think, the login method with the link will also have the plaintext pass.

Torsten
2010/8/29 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
I am trying to setup my autoreply so that it has a direct link for the requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with every autoreply that will take the requestor straight to the ticket on the web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

Damn, you are right, for users with a password this will not work.

Hmmm, possibly other guys have better ideas…parse it through john and
then you have it plain text :-(2010/8/30 Codatel Lists lists@codatel.com.au

This is what the RT replied back to me in the email

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

there was no password

FYI the Auto generation script has no effect here as the requestor is an
existing email address

so the

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

line is outside the password auto genrating script.

I believe the $pass parameter has something to do with the script but it is
not being understood as the line I used is not within that part of the
script.

On 30/08/2010, at 7:48 PM, Torsten Brumm wrote:

OK, the mail sent out, does it have the password posted?

Is this the correct link you created?

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

Or like this?

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=
$pass

??
2010/8/30 Codatel Lists lists@codatel.com.au

I have tried that and I get the following result.

The password is blank

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

On 30/08/2010, at 7:38 PM, Torsten Brumm wrote:

Hi,
looks like we didn’t talked about the same…

You like to do this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

No idea what is stored here: $Transaction->CreatorObj->__Value('Password’
but from the output you sent, it looks like the md5 of the password:

You should try this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

inside $pass you sent out the plain text password and i think, the login
method with the link will also have the plaintext pass.

Torsten
2010/8/29 Codatel Lists lists@codatel.com.au

I am trying to setup my autoreply so that it has a direct link for the
requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the
past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually
goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link
with every autoreply that will take the requestor straight to the ticket on
the web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this
string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for
you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!


MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de


MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de

MFG

Torsten Brumm

http://www.brumm.me

what do you mean by parse it through john?On 30/08/2010, at 10:12 PM, Torsten Brumm wrote:

Damn, you are right, for users with a password this will not work.

Hmmm, possibly other guys have better ideas…parse it through john and then you have it plain text :frowning:

2010/8/30 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
This is what the RT replied back to me in the email

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

there was no password

FYI the Auto generation script has no effect here as the requestor is an existing email address

so the

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

line is outside the password auto genrating script.

I believe the $pass parameter has something to do with the script but it is not being understood as the line I used is not within that part of the script.

On 30/08/2010, at 7:48 PM, Torsten Brumm wrote:

OK, the mail sent out, does it have the password posted?

Is this the correct link you created?
http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

Or like this?
http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=$pass

??
2010/8/30 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
I have tried that and I get the following result.

The password is blank

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

On 30/08/2010, at 7:38 PM, Torsten Brumm wrote:

Hi,
looks like we didn’t talked about the same…

You like to do this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

No idea what is stored here: $Transaction->CreatorObj->__Value(‘Password’ but from the output you sent, it looks like the md5 of the password:

You should try this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

inside $pass you sent out the plain text password and i think, the login method with the link will also have the plaintext pass.

Torsten
2010/8/29 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
I am trying to setup my autoreply so that it has a direct link for the requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with every autoreply that will take the requestor straight to the ticket on the web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

Torsten talks about this tool ttp://www.openwall.com/john/

Le 30/08/2010 14:19, Codatel Lists a �crit :

This would be pretty difficult and beyond me for sure into RT

Isnt there a way I can fetch the plain password with the RT framework?On 30/08/2010, at 10:49 PM, Marouane HIMDI wrote:

Torsten talks about this tool ttp://www.openwall.com/john/

Le 30/08/2010 14:19, Codatel Lists a écrit :
what do you mean by parse it through john?

On 30/08/2010, at 10:12 PM, Torsten Brumm wrote:

Damn, you are right, for users with a password this will not work.

Hmmm, possibly other guys have better ideas…parse it through john and then you have it plain text :frowning:

2010/8/30 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
This is what the RT replied back to me in the email

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

there was no password

FYI the Auto generation script has no effect here as the requestor is an existing email address

so the

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

line is outside the password auto genrating script.

I believe the $pass parameter has something to do with the script but it is not being understood as the line I used is not within that part of the script.

On 30/08/2010, at 7:48 PM, Torsten Brumm wrote:

OK, the mail sent out, does it have the password posted?

Is this the correct link you created?
http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

Or like this?
http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=$pass

??
2010/8/30 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
I have tried that and I get the following result.

The password is blank

http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=

On 30/08/2010, at 7:38 PM, Torsten Brumm wrote:

Hi,
looks like we didn’t talked about the same…

You like to do this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

No idea what is stored here: $Transaction->CreatorObj->__Value(‘Password’ but from the output you sent, it looks like the md5 of the password:

You should try this:

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}

inside $pass you sent out the plain text password and i think, the login method with the link will also have the plaintext pass.

Torsten
2010/8/29 Codatel Lists <lists@codatel.com.aumailto:lists@codatel.com.au>
I am trying to setup my autoreply so that it has a direct link for the requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template

{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.

this is the link that the requestor gets back

http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fbhttp://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

Below is my entire template.

Can someone please let me know how I am able to send a clickable link with every autoreply that will take the requestor straight to the ticket on the web.

Subject: AutoReply: {$Ticket->Subject}

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:

    "{$Ticket->Subject()}",

a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

    my $user = RT::User->new($RT::SystemUser);
    $user->Load($Transaction->CreatorObj->Id);
    my ($stat, $pass) = $user->SetRandomPassword();



    if (!$stat) {
            $OUT .=

“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

    }

$OUT .= "
You can check the current status and history of your requests at:

    ".$RT::WebURL."

When prompted, enter the following username and password:

    Username: ".$user->Name."
    Password: ".$pass."

";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}

                    Thank you.
                    {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

MFG

Torsten Brumm

http://www.brumm.mehttp://www.brumm.me/
http://www.elektrofeld.dehttp://www.elektrofeld.de/

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

&pass= is part of the link to be displayed {{$Transaction->CreatorObj->__Value} is the
variable data which the system should fetch

I suspect Torsten meant that you already have the decoded password
stored in $pass (you’re printing it in the email you send) so just use
it in the link too

-kevin

I think its because the $pass value is only generated if the auto password generation script finds that the email from a new user.

If the email is not from a new user then the script is not activated and therefore the $pass data is not thereOn 31/08/2010, at 1:07 AM, Kevin Falcone wrote:

On Mon, Aug 30, 2010 at 02:51:48PM +1000, Codatel Lists wrote:

&pass= is part of the link to be displayed {{$Transaction->CreatorObj->__Value} is the
variable data which the system should fetch
On 30/08/2010, at 7:38 AM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:

I suspect Torsten meant that you already have the decoded password
stored in $pass (you’re printing it in the email you send) so just use
it in the link too

-kevin

Why not use: $pass instead of:&pass={$Transaction->CreatorObj->__Value

Torsten

Von: [1]rt-users-bounces@lists.bestpractical.com
<[2]rt-users-bounces@lists.bestpractical.com>
An: [3]rt-users@lists.bestpractical.com <[4]rt-users@lists.bestpractical.com>
Gesendet: Sun Aug 29 23:01:02 2010
Betreff: [rt-users] Auto Login Link in autoreply with password
I am trying to setup my autoreply so that it has a direct link for the requestor to click
and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.
I have inserted the following into the autoreply template
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value('Password')}
It almost works perfectly except for the fact that the password actually goes out encrypted
and is pretty useless.
this is the link that the requestor gets back
[5]http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb
Below is my entire template.
Can someone please let me know how I am able to send a clickable link with every autoreply
that will take the requestor straight to the ticket on the web.
Subject: AutoReply: {$Ticket->Subject}
Greetings,
This message has been automatically generated in response to the
creation of a helpdesk call:
        "{$Ticket->Subject()}",
a summary of which appears below.
There is no need to reply to this message right now. Your ticket has been
 assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.
{
*RT::User::GenerateRandomNextChar = \&RT::User::_GenerateRandomNextChar;
if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
    (!$Transaction->CreatorObj->Privileged) &&
    ($Transaction->CreatorObj->__Value('Password') eq '*NO-PASSWORD*')
    ) {
        my $user = RT::User->new($RT::SystemUser);
        $user->Load($Transaction->CreatorObj->Id);
        my ($stat, $pass) = $user->SetRandomPassword();
        if (!$stat) {
                $OUT .=
"An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.";
        }
$OUT .= "
You can check the current status and history of your requests at:
        ".$RT::WebURL."
When prompted, enter the following username and password:
        Username: ".$user->Name."
        Password: ".$pass."
";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value('Password')}
                        Thank you.
                        {$Ticket->QueueObj->CorrespondAddress()}
-------------------------------------------------------------------------
{$Transaction->Content()}

K*hne + Nagel (AG & Co.) KG, Gesch*ftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius,
Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnett*, Mark Reinhardt, Jens Wollesen,
Klaus J*ger (stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE
812773878, Pers*nlich haftende Gesellschaft: K*hne & Nagel A.G., Sitz: Contern/Luxemburg,
Gesch*ftsf*hrender Verwaltungsrat: Klaus-Michael K*hne

References

Visible links

  1. mailto:rt-users-bounces@lists.bestpractical.com
  2. mailto:rt-users-bounces@lists.bestpractical.com
  3. mailto:rt-users@lists.bestpractical.com
  4. mailto:rt-users@lists.bestpractical.com
  5. http://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010 Last one this year -- Learn how to get the most out of RT!

I think its because the $pass value is only generated if the auto password generation script finds that the email from a new user.

If the email is not from a new user then the script is not activated and therefore the $pass data is not there

RT’s User class explicitly flags the password unreadable, so I suspect
you’ll have trouble getting at it without an overlay to allow reading

-kevin> On 31/08/2010, at 1:07 AM, Kevin Falcone wrote:

On Mon, Aug 30, 2010 at 02:51:48PM +1000, Codatel Lists wrote:

&pass= is part of the link to be displayed {{$Transaction->CreatorObj->__Value} is the
variable data which the system should fetch
On 30/08/2010, at 7:38 AM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:

I suspect Torsten meant that you already have the decoded password
stored in $pass (you’re printing it in the email you send) so just use
it in the link too

-kevin

Why not use: $pass instead of:&pass={$Transaction->CreatorObj->__Value

Torsten

Von: [1]rt-users-bounces@lists.bestpractical.com
<[2]rt-users-bounces@lists.bestpractical.com>
An: [3]rt-users@lists.bestpractical.com <[4]rt-users@lists.bestpractical.com>
Gesendet: Sun Aug 29 23:01:02 2010
Betreff: [rt-users] Auto Login Link in autoreply with password
I am trying to setup my autoreply so that it has a direct link for the requestor to click
and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.
I have inserted the following into the autoreply template
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value('Password')}
It almost works perfectly except for the fact that the password actually goes out encrypted
and is pretty useless.
this is the link that the requestor gets back
[5]http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb
Below is my entire template.
Can someone please let me know how I am able to send a clickable link with every autoreply
that will take the requestor straight to the ticket on the web.
Subject: AutoReply: {$Ticket->Subject}
Greetings,
This message has been automatically generated in response to the
creation of a helpdesk call:
        "{$Ticket->Subject()}",
a summary of which appears below.
There is no need to reply to this message right now. Your ticket has been
 assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.
{
*RT::User::GenerateRandomNextChar = \&RT::User::_GenerateRandomNextChar;
if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
    (!$Transaction->CreatorObj->Privileged) &&
    ($Transaction->CreatorObj->__Value('Password') eq '*NO-PASSWORD*')
    ) {
        my $user = RT::User->new($RT::SystemUser);
        $user->Load($Transaction->CreatorObj->Id);
        my ($stat, $pass) = $user->SetRandomPassword();
        if (!$stat) {
                $OUT .=
"An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.";
        }
$OUT .= "
You can check the current status and history of your requests at:
        ".$RT::WebURL."
When prompted, enter the following username and password:
        Username: ".$user->Name."
        Password: ".$pass."
";
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value('Password')}
                        Thank you.
                        {$Ticket->QueueObj->CorrespondAddress()}
-------------------------------------------------------------------------
{$Transaction->Content()}

K*hne + Nagel (AG & Co.) KG, Gesch*ftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius,
Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnett*, Mark Reinhardt, Jens Wollesen,
Klaus J*ger (stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE
812773878, Pers*nlich haftende Gesellschaft: K*hne & Nagel A.G., Sitz: Contern/Luxemburg,
Gesch*ftsf*hrender Verwaltungsrat: Klaus-Michael K*hne

References

Visible links

  1. mailto:rt-users-bounces@lists.bestpractical.com
  2. mailto:rt-users-bounces@lists.bestpractical.com
  3. mailto:rt-users@lists.bestpractical.com
  4. mailto:rt-users@lists.bestpractical.com
  5. http://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010 Last one this year -- Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

is there anyone who can point me to a way to get it done.

A large Client I deal with uses it and has implemented it in that way, so I know it can work.

I have not been able to find out who is the maintainer of thier RT as they are a large organisation.

But I would really like to get it implementedOn 31/08/2010, at 1:42 AM, Kevin Falcone wrote:

On Tue, Aug 31, 2010 at 01:19:32AM +1000, Codatel Lists wrote:

I think its because the $pass value is only generated if the auto password generation script finds that the email from a new user.

If the email is not from a new user then the script is not activated and therefore the $pass data is not there

RT’s User class explicitly flags the password unreadable, so I suspect
you’ll have trouble getting at it without an overlay to allow reading

-kevin

On 31/08/2010, at 1:07 AM, Kevin Falcone wrote:

On Mon, Aug 30, 2010 at 02:51:48PM +1000, Codatel Lists wrote:

&pass= is part of the link to be displayed {{$Transaction->CreatorObj->__Value} is the
variable data which the system should fetch
On 30/08/2010, at 7:38 AM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:

I suspect Torsten meant that you already have the decoded password
stored in $pass (you’re printing it in the email you send) so just use
it in the link too

-kevin

Why not use: $pass instead of:&pass={$Transaction->CreatorObj->__Value

Torsten


Von: [1]rt-users-bounces@lists.bestpractical.com
<[2]rt-users-bounces@lists.bestpractical.com>
An: [3]rt-users@lists.bestpractical.com <[4]rt-users@lists.bestpractical.com>
Gesendet: Sun Aug 29 23:01:02 2010
Betreff: [rt-users] Auto Login Link in autoreply with password
I am trying to setup my autoreply so that it has a direct link for the requestor to click
and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.
I have inserted the following into the autoreply template
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}
It almost works perfectly except for the fact that the password actually goes out encrypted
and is pretty useless.
this is the link that the requestor gets back
[5]http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb
Below is my entire template.
Can someone please let me know how I am able to send a clickable link with every autoreply
that will take the requestor straight to the ticket on the web.
Subject: AutoReply: {$Ticket->Subject}
Greetings,
This message has been automatically generated in response to the
creation of a helpdesk call:
"{$Ticket->Subject()}",
a summary of which appears below.
There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.
{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;
if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {
my $user = RT::User->new($RT::SystemUser);
$user->Load($Transaction->CreatorObj->Id);
my ($stat, $pass) = $user->SetRandomPassword();
if (!$stat) {
$OUT .=
“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;
}
$OUT .= “
You can check the current status and history of your requests at:
”.$RT::WebURL."
When prompted, enter the following username and password:
Username: ".$user->Name.“
Password: “.$pass.”
”;
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}
Thank you.
{$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

Khne + Nagel (AG & Co.) KG, Geschftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius,
Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnett*, Mark Reinhardt, Jens Wollesen,
Klaus Jger (stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE
812773878, Pers
nlich haftende Gesellschaft: Khne & Nagel A.G., Sitz: Contern/Luxemburg,
Gesch
ftsfhrender Verwaltungsrat: Klaus-Michael Khne

References

Visible links

  1. mailto:rt-users-bounces@lists.bestpractical.com
  2. mailto:rt-users-bounces@lists.bestpractical.com
  3. mailto:rt-users@lists.bestpractical.com
  4. mailto:rt-users@lists.bestpractical.com
  5. http://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010 Last one this year -- Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

oops…
I replied to the wrong trail… :slight_smile:

Take 2…

I have found this line in a folder in the rt home directory.

anyone know what it means or if this is something I can use in my autoreply

/RTHOME/RT/Test/Web.pm: $self->get($url . “?user=$user;pass=$pass”);On 31/08/2010, at 1:42 AM, Kevin Falcone wrote:

On Tue, Aug 31, 2010 at 01:19:32AM +1000, Codatel Lists wrote:

I think its because the $pass value is only generated if the auto password generation script finds that the email from a new user.

If the email is not from a new user then the script is not activated and therefore the $pass data is not there

RT’s User class explicitly flags the password unreadable, so I suspect
you’ll have trouble getting at it without an overlay to allow reading

-kevin

On 31/08/2010, at 1:07 AM, Kevin Falcone wrote:

On Mon, Aug 30, 2010 at 02:51:48PM +1000, Codatel Lists wrote:

&pass= is part of the link to be displayed {{$Transaction->CreatorObj->__Value} is the
variable data which the system should fetch
On 30/08/2010, at 7:38 AM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:

I suspect Torsten meant that you already have the decoded password
stored in $pass (you’re printing it in the email you send) so just use
it in the link too

-kevin

Why not use: $pass instead of:&pass={$Transaction->CreatorObj->__Value

Torsten


Von: [1]rt-users-bounces@lists.bestpractical.com
<[2]rt-users-bounces@lists.bestpractical.com>
An: [3]rt-users@lists.bestpractical.com <[4]rt-users@lists.bestpractical.com>
Gesendet: Sun Aug 29 23:01:02 2010
Betreff: [rt-users] Auto Login Link in autoreply with password
I am trying to setup my autoreply so that it has a direct link for the requestor to click
and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.
I have inserted the following into the autoreply template
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}
It almost works perfectly except for the fact that the password actually goes out encrypted
and is pretty useless.
this is the link that the requestor gets back
[5]http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb
Below is my entire template.
Can someone please let me know how I am able to send a clickable link with every autoreply
that will take the requestor straight to the ticket on the web.
Subject: AutoReply: {$Ticket->Subject}
Greetings,
This message has been automatically generated in response to the
creation of a helpdesk call:
"{$Ticket->Subject()}",
a summary of which appears below.
There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.
{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;
if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {
my $user = RT::User->new($RT::SystemUser);
$user->Load($Transaction->CreatorObj->Id);
my ($stat, $pass) = $user->SetRandomPassword();
if (!$stat) {
$OUT .=
“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;
}
$OUT .= “
You can check the current status and history of your requests at:
”.$RT::WebURL."
When prompted, enter the following username and password:
Username: ".$user->Name.“
Password: “.$pass.”
”;
}
}
{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value(‘Password’)}
Thank you.
{$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

Khne + Nagel (AG & Co.) KG, Geschftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius,
Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnett*, Mark Reinhardt, Jens Wollesen,
Klaus Jger (stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE
812773878, Pers
nlich haftende Gesellschaft: Khne & Nagel A.G., Sitz: Contern/Luxemburg,
Gesch
ftsfhrender Verwaltungsrat: Klaus-Michael Khne

References

Visible links

  1. mailto:rt-users-bounces@lists.bestpractical.com
  2. mailto:rt-users-bounces@lists.bestpractical.com
  3. mailto:rt-users@lists.bestpractical.com
  4. mailto:rt-users@lists.bestpractical.com
  5. http://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010 Last one this year -- Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

Normally this can’t work because RT saves the password not as plain text
but as md5 hash.
But for the login you need the plain password, you can’t login with the
md5 password hash.
The only way to do this is, to use a password cracker who get you the
plain password from the md5 hash or you change RT that it store the
password not as md5 but as plain text. But this would be an security issue.

-ChrisAm 30.08.2010 17:55, schrieb Codatel Lists:

is there anyone who can point me to a way to get it done.

A large Client I deal with uses it and has implemented it in that way, so I know it can work.

I have not been able to find out who is the maintainer of thier RT as they are a large organisation.

But I would really like to get it implemented

Are you suggesting that asking the user to login once (the very first time) is a problem?
As long as the user has logged into the system with a valid password once, you can send him/her a link without using credentials in the URL and it will get them directly there (unless they close all their browser windows).

The other options is to use external authentication (so the httpd does the authentication), and integrate that with your infrastructure (Kerberos, single sign-on, etc), and setup RT to honor that (ie: use the user from the web server).

I believe that either of those would be sufficient. Dealing with passwords like that always makes me nervous…

Jok