Random Password template

Hi All,

I was trying to use Jesse’s Random Password template, but it doesn’t work :frowning:

The template is here:

http://lists.fsck.com/pipermail/rt-doc-workers/2002-November/000198.html

I added a scrip

OnCreate AutoreplyToRequestors with template RandomPassword

but everyone gets a mail saying an internal error occured. :frowning:

RT is 2.0.15, RHDB 2.1 (postgres), fastcgi.

Thanks,

Binand

Hi All,

I was trying to use Jesse’s Random Password template, but it doesn’t work :frowning:

The template is here:

http://lists.fsck.com/pipermail/rt-doc-workers/2002-November/000198.html

I added a scrip

OnCreate AutoreplyToRequestors with template RandomPassword

but everyone gets a mail saying an internal error occured. :frowning:

The exact text is

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

I have granted EveryOne ModifySelf right too.

Binand

Hi All,

I was trying to use Jesse’s Random Password template, but it doesn’t
work :frowning:

The template is here:

http://lists.fsck.com/pipermail/rt-doc-workers/2002-November/
000198.html

I added a scrip

OnCreate AutoreplyToRequestors with template RandomPassword

but everyone gets a mail saying an internal error occured. :frowning:

The exact text is

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

I have granted EveryOne ModifySelf right too.

You should set $logToFile = ‘debug’ in config.pm to get more
information. Don’t forget to stop and start apache after doing so.
Then, try agan, and see if there is more information in the log(s).

Regards,
Harald
Harald Wagener * FCB/Wilkens * An der Alster 42 * 20099 Hamburg

You should set $logToFile = ‘debug’ in config.pm to get more
information. Don’t forget to stop and start apache after doing so.
Then, try agan, and see if there is more information in the log(s).

Well, thanks. I figured the problem (and recording here for posterity :slight_smile:
Should I file this as a bug in RT?

The issue was a hardcoded password length limit in RT/lib/User.pm. I had

$MinimumPasswordLength = “8”;

in my etc/config.pm. But, in RT/lib/User.pm, we have:

my $pass = $self->GenerateRandomPassword(6,8);

Thus, more often than not, the random passwords thus generated were less
than 8 characters.

I changed the template to print out $pass in case of error too, to figure
this out.

For my purpose, this patch is enough. Everyone gets 8 character
passwords. YMMV. Ideally, User.pm should use $MinimumPasswordLength and
$MaximumPasswordLength (which defaults to two more than the minimum :slight_smile:

— lib/RT/User.pm.old Fri Jan 10 07:23:50 2003
+++ lib/RT/User.pm Fri Jan 10 07:23:56 2003
@@ -315,7 +315,7 @@
return (0, “Permission Denied”);
}

  • my $pass = $self->GenerateRandomPassword(6,8);
  • my $pass = $self->GenerateRandomPassword(8,8);

    If we have "notify user on

Binand

  • Binand Raj S. binand@gmx.net [20030110 15:45]: wrote:> On Thu, Jan 09, 2003 at 04:16:01PM +0100, Harald Wagener wrote:

You should set $logToFile = ‘debug’ in config.pm to get more
information. Don’t forget to stop and start apache after doing so.
Then, try agan, and see if there is more information in the log(s).

Well, thanks. I figured the problem (and recording here for posterity :slight_smile:
Should I file this as a bug in RT?

Hello Binand,

I’ve used the same template and it works, but when I login to the web ui,
no tickets are displayed. There are three tabs for [Open requests] [Closed requests]
and [New request] but no ticket is shown at all.

Any clues as to why?

Thanks

    cheers
   - wash 

Odhiambo Washington, wash@wananchi.com . WANANCHI ONLINE LTD (Nairobi, KE) |
http://ns2.wananchi.com/~wash/ . 1ere Etage, Loita Hse, Loita St., |
GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI |
“Oh My God! They killed init! You Bastards!”
–from a /. post

I’ve used the same template and it works, but when I login to the web ui,
no tickets are displayed. There are three tabs for [Open requests] [Closed requests]
and [New request] but no ticket is shown at all.

It didn’t work for me because for my installation, the minimum password
length is 8 whereas the template as published generates passwords between
6-8 characters. This probably has nothing to do with your installation.

Do you have SeeQueue right for EveryOne group in your queue or globally?

Configuration->Queues->Your Queue->Group Rights->Everyone.

I have CreateTicket, ReplyToTicket and SeeQueue rights for Everyone.

Binand

  • Binand Raj S. binand@gmx.net [20030111 15:42]: wrote:> On Sat, Jan 11, 2003 at 03:23:31PM +0300, Odhiambo Washington wrote:

I’ve used the same template and it works, but when I login to the web ui,
no tickets are displayed. There are three tabs for [Open requests] [Closed requests]
and [New request] but no ticket is shown at all.

It didn’t work for me because for my installation, the minimum password
length is 8 whereas the template as published generates passwords between
6-8 characters. This probably has nothing to do with your installation.

Do you have SeeQueue right for EveryOne group in your queue or globally?

Configuration->Queues->Your Queue->Group Rights->Everyone.

I have CreateTicket, ReplyToTicket and SeeQueue rights for Everyone.

This is correct. In the testing process I figured it out.

    cheers
   - wash 

Odhiambo Washington, wash@wananchi.com . WANANCHI ONLINE LTD (Nairobi, KE) |
http://ns2.wananchi.com/~wash/ . 1ere Etage, Loita Hse, Loita St., |
GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI |
“Oh My God! They killed init! You Bastards!”
–from a /. post