Theology question

In the immortal words of Ruslan Zakirov (ruslan.zakirov@gmail.com):

<<<
9. Edit /opt/rt3/lib/RT/User_Local.pm to fix a small logic error in
UIO’s code. At line 374, change the != comparison to a ne comparison,
so that the line reads:

if (defined($RT::LdapUser) && $RT::LdapUser ne ‘’) {

Equive perl code for this is:
if ( $RT::LdapUser ) {

}

Heh, quite right. I’ve updated my docs accordingly.

-n

------------------------------------------------------------memory@blank.org
“The beauty you like is precisely that which escapes you.” (–Issey Miyake)
http://blank.org/memory/----------------------------------------------------

In the immortal words of Ruslan Zakirov (ruslan.zakirov@gmail.com):

<<<
If you are not starting from scratch, but are trying to integrate a
[…]

I think this note about internal users only, who are in the AD. AFAIK
RT wouldn’t allow to create new user(even with different Name) with
the same EmailAddress, so you have to do this step if at least one
user from the AD is in RT allready.

Oops, you’re quite right. I’ve updated the doc to have hopefully
slightly clearer instructions, and am working on a migration script.

-n

------------------------------------------------------------memory@blank.org
"A Force Recon colonel once told me, “If it’s a stupid idea, and it works, it
must not be a stupid idea.” (–John Frazier)
http://blank.org/memory/----------------------------------------------------

I am still figuring out why it gives me an error to install the
DBD::mysql driver, I tried installing in the location of my RT
“/usr/local/rt”, but it installs in /opt/rt3? I have 3.4.4pre2, does
that cause any problem?

Does the shredder delete users for a range eg: 1-10?

Thanks
Ahalya Nathan
Senior Programmer / Analyst
Information Technology, Metropolitan Utilities District
(402) 504-7180 phone
(402) 504-5180 faxFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Ruslan
Zakirov
Sent: Tuesday, October 25, 2005 9:05 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] error using Shredder

Trying to blow away a bunch of users created by a spam run, Shredder
kicks back the following error:

error: couldn’t find resolver for dependency ‘RT::User-16346
(depends on,resolvable dependency) RT::Attachment-36478’ at
/usr/local/rt34/local/lib/RTx/Shredder/Dependency.pm line 87.
use --replace_relations option of the users plugin

context: …
83: TargetClass => $self->TargetClass,
84: );
85:
86: unless( $resolver ) {
87: die “couldn’t find resolver for dependency '”. $self->AsString
.“'”;
88: }
89: unless( UNIVERSAL::isa( $resolver => ‘CODE’ ) ) {
90: die “resolver is not code reference: ‘$resolver’”;
91: }

code stack:
/usr/local/rt34/local/lib/RTx/Shredder/Dependency.pm:87
/usr/local/rt34/local/lib/RTx/Shredder/Record.pm:211
/usr/local/rt34/local/lib/RTx/Shredder/Record.pm:197
/usr/local/rt34/local/lib/RTx/Shredder.pm:348
/usr/local/rt34/share/html/Admin/Tools/Shredder/index.html:73
/usr/local/rt34/share/html/Admin/Tools/Shredder/autohandler:12
/usr/local/rt34/share/html/Admin/autohandler:47
/usr/local/rt34/share/html/autohandler:215

------------------------------------------------------------<memory@blan
k.org>

My motorcycle/
stands forlorn on Hurlbut Street.
The fucker won’t start.
(–me)

http://blank.org/memory/----------------------------------------------


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

Best regards, Ruslan.
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

When I installed it from CPAN, installation goes fine, but it installs
it in /opt/rt3/ . How do I redirect this to " /usr/local/rt" directory?

Ahalya Nathan
Senior Programmer / Analyst
Information Technology, Metropolitan Utilities District
(402) 504-7180 phone
(402) 504-5180 faxFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Nathan,
Ahalya
Sent: Wednesday, October 26, 2005 9:51 AM
To: Ruslan Zakirov; rt-users@lists.bestpractical.com
Subject: RE: [rt-users] error using Shredder

I am still figuring out why it gives me an error to install the
DBD::mysql driver, I tried installing in the location of my RT
“/usr/local/rt”, but it installs in /opt/rt3? I have 3.4.4pre2, does
that cause any problem?

Does the shredder delete users for a range eg: 1-10?

Thanks
Ahalya Nathan
Senior Programmer / Analyst
Information Technology, Metropolitan Utilities District
(402) 504-7180 phone
(402) 504-5180 fax

From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Ruslan
Zakirov
Sent: Tuesday, October 25, 2005 9:05 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] error using Shredder

Trying to blow away a bunch of users created by a spam run, Shredder
kicks back the following error:

error: couldn’t find resolver for dependency ‘RT::User-16346
(depends on,resolvable dependency) RT::Attachment-36478’ at
/usr/local/rt34/local/lib/RTx/Shredder/Dependency.pm line 87.
use --replace_relations option of the users plugin

context: …
83: TargetClass => $self->TargetClass,
84: );
85:
86: unless( $resolver ) {
87: die “couldn’t find resolver for dependency '”. $self->AsString
.“'”;
88: }
89: unless( UNIVERSAL::isa( $resolver => ‘CODE’ ) ) {
90: die “resolver is not code reference: ‘$resolver’”;
91: }

code stack:
/usr/local/rt34/local/lib/RTx/Shredder/Dependency.pm:87
/usr/local/rt34/local/lib/RTx/Shredder/Record.pm:211
/usr/local/rt34/local/lib/RTx/Shredder/Record.pm:197
/usr/local/rt34/local/lib/RTx/Shredder.pm:348
/usr/local/rt34/share/html/Admin/Tools/Shredder/index.html:73
/usr/local/rt34/share/html/Admin/Tools/Shredder/autohandler:12
/usr/local/rt34/share/html/Admin/autohandler:47
/usr/local/rt34/share/html/autohandler:215

------------------------------------------------------------<memory@blan
k.org>

My motorcycle/
stands forlorn on Hurlbut Street.
The fucker won’t start.
(–me)

http://blank.org/memory/----------------------------------------------


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

Best regards, Ruslan.
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com
The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

When I installed it from CPAN, installation goes fine, but it installs
it in /opt/rt3/ . How do I redirect this to " /usr/local/rt" directory?
use RTHOME environment variable

Ahalya Nathan
Senior Programmer / Analyst
Information Technology, Metropolitan Utilities District
(402) 504-7180 phone
(402) 504-5180 fax

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Nathan,
Ahalya
Sent: Wednesday, October 26, 2005 9:51 AM
To: Ruslan Zakirov; rt-users@lists.bestpractical.com
Subject: RE: [rt-users] error using Shredder

I am still figuring out why it gives me an error to install the
DBD::mysql driver, I tried installing in the location of my RT
“/usr/local/rt”, but it installs in /opt/rt3? I have 3.4.4pre2, does
that cause any problem?

Does the shredder delete users for a range eg: 1-10?

Thanks
Ahalya Nathan
Senior Programmer / Analyst
Information Technology, Metropolitan Utilities District
(402) 504-7180 phone
(402) 504-5180 fax

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Ruslan
Zakirov
Sent: Tuesday, October 25, 2005 9:05 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] error using Shredder

Trying to blow away a bunch of users created by a spam run, Shredder
kicks back the following error:

error: couldn’t find resolver for dependency ‘RT::User-16346
(depends on,resolvable dependency) RT::Attachment-36478’ at
/usr/local/rt34/local/lib/RTx/Shredder/Dependency.pm line 87.
use --replace_relations option of the users plugin

context: …
83: TargetClass => $self->TargetClass,
84: );
85:
86: unless( $resolver ) {
87: die “couldn’t find resolver for dependency '”. $self->AsString
.“'”;
88: }
89: unless( UNIVERSAL::isa( $resolver => ‘CODE’ ) ) {
90: die “resolver is not code reference: ‘$resolver’”;
91: }

code stack:
/usr/local/rt34/local/lib/RTx/Shredder/Dependency.pm:87
/usr/local/rt34/local/lib/RTx/Shredder/Record.pm:211
/usr/local/rt34/local/lib/RTx/Shredder/Record.pm:197
/usr/local/rt34/local/lib/RTx/Shredder.pm:348
/usr/local/rt34/share/html/Admin/Tools/Shredder/index.html:73
/usr/local/rt34/share/html/Admin/Tools/Shredder/autohandler:12
/usr/local/rt34/share/html/Admin/autohandler:47
/usr/local/rt34/share/html/autohandler:215

------------------------------------------------------------<memory@blan
k.org>

My motorcycle/
stands forlorn on Hurlbut Street.
The fucker won’t start.
(–me)

http://blank.org/memory/----------------------------------------------


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com


Best regards, Ruslan.


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

Best regards, Ruslan.

Hi,

Thank You very much for this fix!!!

We have updated the changes now!

Tomas

On the marvelous Wed, 26 Oct 2005, Ruslan Zakirov wrote kindly to me …

Date: Wed, 26 Oct 2005 08:41:57 +0400
From: Ruslan Zakirov ruslan.zakirov@gmail.com
To: rt-users@lists.bestpractical.com
Cc: rt-drift@usit.uio.no
Subject: Re: [rt-users] The holy grail: RT, Apache/unix,
and Active Directory Single Sign-On (yes, really)

<<<
9. Edit /opt/rt3/lib/RT/User_Local.pm to fix a small logic error in
UIO’s code. At line 374, change the != comparison to a ne comparison,
so that the line reads:

if (defined($RT::LdapUser) && $RT::LdapUser ne ‘’) {

Equive perl code for this is:
if ( $RT::LdapUser ) {

}

At the risk of following up to myself…

Because creating and maintaining a local/html/autohandler file was too
ugly a hack to tolerate, I broke down and wrote the necessary
Web_Local.pm glue to autofill Name, RealName and EmailAddress from the
LDAP directory.

Updated instructions and the Web_Local.pm file itself are at:

    http://blank.org/memory/output/rt-ad-sso.html

-n

----------------------------------------------------------memory@blank.org
And when love is gone, there’s always justice. And when justice is gone
there’s always force. And when force is gone, threre’s always mom. Hi mom!
(–Laurie Anderson)
http://blank.org/memory/--------------------------------------------------


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com


Best regards, Ruslan.

Tomas A. P. Olaj, email: tomas.olaj@usit.uio.no, web: folk.uio.no/tomaso
University of Oslo / USIT (Center for Information Technology Services)
System- and Application Management / Applications Management Group