I do apologize for the wrong Subject of my last message.

That is insanely bizarre. I’m getting the exact same message trying to
create a new queue.

-jeffOn Mon, 2004-03-01 at 10:33, Alex Soares de Moura wrote:

Hello,

Suddenly, this morning the RT of our production server started showing
the error below accessing the RT web interface:


error: Insecure dependency in eval while running setgid at
/usr/local/lib/perl5/site_perl/5.8.2/Locale/Maketext/Guts.pm line 247.
context:

243: unshift @code, “use strict; sub {\n”;
244: push @code, “}\n”;
245:
246: print @code if DEBUG;
247: my $sub = eval(join ‘’, @code);
248: die “$@ while evalling” . join(‘’, @code) if $@; # Should be
impossible.
249: return $sub;
250: }
251:

code stack:
/usr/local/lib/perl5/site_perl/5.8.2/Locale/Maketext/Guts.pm:247
/usr/local/lib/perl5/site_perl/5.8.2/Locale/Maketext.pm:196
/opt/rt3/lib/RT/CurrentUser.pm:360
/opt/rt3/lib/RT/Interface/Web.pm:215
/opt/rt3/share/html/Elements/Login:44
/opt/rt3/share/html/autohandler:195
raw error
http://200.17.63.80/rt/#raw--------------------------------------------------------------------------------------------
Environment:
FreeBSD 4.9-STABLE, rt-3.0.8, rtir-1-0-2, mysql-server-4.0.17,
p5-DBIx-SearchBuilder-0.96, p5-FastCGI-0.67.

The only reference I’ve found in the list archive was this:
http://marc.free.net.ph/message/20040109.110507.a020d925.html

but the followup isn’t a solution for us. To change the fastcgi to
mod_perl would be a undesirable change in the environment that’s been
working well and stable for a couple of months.

I’m even afraid of restarting the apache and/or the mysql servers once
some of the users that logged in early in the morning are accessing
without problems (me included). Only the users that are trying to log in
since an hour ago are having this error message displayed.

Last min. update: the problem misteriously disappeared while I was
writing this email. Go figure…

Alex


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

That is insanely bizarre. I’m getting the exact same message trying to
create a new queue.

I get it at random times too. The suggestion I got when I was trying
to troubleshoot was to use suexec but I haven’t had a chance to try it
out. (See
http://lists.fsck.com/pipermail/rt-users/2004-February/020603.html)

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

I am still unable to fix the problem…

Someone has an idea on what the problem might be?

thanks

We have a question of how to handle long term tickets. For example, say we receive a user creation request as soon as the person accepts the position. However, they don’t actually start work for 3 months. What we would like is to be able to get the ticket off our current work plate (via ‘stalled’ or ‘deferred’ or something) but then have its status changed back to ‘open’ on a certain date (say a day or two before the person starts work). We’ve messed with ‘Starts’ and ‘Due Date’ but in our tests, neither seem to trigger automatically the way we want.

Is there something we’re overlooking that does NOT involve setting up rtcrontool?

Thanks,

Ryan Roland

Network and Security Administrator
Information Technology
Division of Recreational Sports
Indiana University

SRSC 115H
1601 Law Lane
Bloomingtin, IN 47405

812.855.9617
rmroland@indiana.edu

What we would like is to be able to get the ticket off our current
work plate (via ‘stalled’ or ‘deferred’ or something) but then have
its status changed back to ‘open’ on a certain date (say a day or two
before the person starts work). We’ve messed with ‘Starts’ and ‘Due
Date’ but in our tests, neither seem to trigger automatically the way
we want.

We have modified a local version of
rt3/local/share/html/Elements/MyTickets so that it doesn’t display tickets
until the Starts time has passed (and it also displays stalled tickets).
The relevant line is

my $Query = " Owner = ‘“.$session{‘CurrentUser’}->Id.”’ AND ( Status = ‘new’ OR Status = ‘open’ OR Status = ‘stalled’) AND Starts <= ‘" . localtime() . "’";

Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
“There is nothing as constant as change.”

Hello RT world,

I am in a jam. This is the situation:  I have configured RT to 

authenticate users on our NIS server. So, when email is submitted, a
valid username is created by chopping the email address in two (i.e.
joe@domain.com becomes user ‘joe’ with email joe@domain.com). This lets
new users login correctly to rt with their NIS password. So it is
important to create users like that.

Here is the problem: Joe also has another email acount,
joe@blah.org, and when he sends mail to RT from this e-mail address he
gets a error message back and no ticket is created. RT recognizes
joe@blah.org as a new address and tries to create a user. When it gets a
username from his email, ‘joe’, and tries to create a new user, it
cannot because a user ‘joe’ already exists. I need to fix this problem.

How can I make RT realize that if a new email address has the same
username as an existing one, then it should assume it belongs to that
user? Then it can add that new address to the existing user or overwrite
the existing users old email. Of course we will assume that there are no
users with conflicting email adresses (i.e. user1 has email
bob@domain.com and user2 has email bob@otherdomain.com). It is safe to
say that all email addresses with the same username belong to the same user

Which also brings up the topic of assigning multiple email addresses to
one user, but it is not neccesary. I only need this to happen when a
user is created on email submission and skip new user creation if the
username already exists.

Thanks in advance,
Kyle Balling
SCI Institute,
Universtiy of Utah

I ran into a similar problem like this just a few days ago because we are using LDAP lookups for user profiles on creation (and using tacacs to authenticate on the windows domain). My problem was more related to emails creating new tickets with different usernames and trying to look it up with that email instead of the network name. Anyway I ended up just doing a LDAP lookup with email address and then creating the email address in the db as our main domain name.

One thing I can think of that might help you is to enter the full “user@domain” upon creation, and then when a user logs in (they can use their
Network id) to append your common domain to their id before you authenticate. Just a thought. More than 1 way to skin a cat though.

T.J. Maciak

Internet/Intranet Developer
Department of IT
City of Grand Rapids
P: (616)456-3713
F: (616)456-3448-----Original Message-----
From: Kyle Balling [mailto:kballing@sci.utah.edu]
Sent: Wednesday, August 31, 2005 3:06 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] [Fwd: Multiple email addresses for a single login name]

Hello RT world,

I am in a jam. This is the situation:  I have configured RT to authenticate users on our NIS server. So,  when email is submitted, a valid username is created by chopping the email address in two (i.e. 

joe@domain.com becomes user ‘joe’ with email joe@domain.com). This lets new users login correctly to rt with their NIS password. So it is important to create users like that.

Here is the problem: Joe also has another email acount, joe@blah.org, and when he sends mail to RT from this e-mail address he gets a error message back and no ticket is created. RT recognizes joe@blah.org as a new address and tries to create a user. When it gets a username from his email, ‘joe’, and tries to create a new user, it cannot because a user ‘joe’ already exists. I need to fix this problem.

How can I make RT realize that if a new email address has the same username as an existing one, then it should assume it belongs to that user? Then it can add that new address to the existing user or overwrite the existing users old email. Of course we will assume that there are no users with conflicting email adresses (i.e. user1 has email bob@domain.com and user2 has email bob@otherdomain.com). It is safe to say that all email addresses with the same username belong to the same user

Which also brings up the topic of assigning multiple email addresses to one user, but it is not neccesary. I only need this to happen when a user is created on email submission and skip new user creation if the username already exists.

Thanks in advance,
Kyle Balling
SCI Institute,
Universtiy of Utah

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

Hello RT world,

I am in a jam. This is the situation:  I have configured RT to

authenticate users on our NIS server. So, when email is submitted, a
valid username is created by chopping the email address in two (i.e.
joe@domain.com becomes user ‘joe’ with email joe@domain.com). This lets
new users login correctly to rt with their NIS password. So it is
important to create users like that.

Here is the problem: Joe also has another email acount,
joe@blah.org, and when he sends mail to RT from this e-mail address he
gets a error message back and no ticket is created. RT recognizes
joe@blah.org as a new address and tries to create a user. When it gets a
username from his email, ‘joe’, and tries to create a new user, it
cannot because a user ‘joe’ already exists. I need to fix this problem.
If blah.org is known domain then you can do it. If it random domain
for example Joe’s free email address, but Bob uses another domain,
then no.

In the first case you can use $RT::CanonicalizeEmailAddressMatch and
$RT::CanonicalizeEmailAddressReplace RT config options, see inline
descriptions in RT config and search for examples on the wiki and in
the lists archive.

How can I make RT realize that if a new email address has the same
username as an existing one, then it should assume it belongs to that
user? Then it can add that new address to the existing user or overwrite
the existing users old email. Of course we will assume that there are no
users with conflicting email adresses (i.e. user1 has email
bob@domain.com and user2 has email bob@otherdomain.com). It is safe to
say that all email addresses with the same username belong to the same user

Which also brings up the topic of assigning multiple email addresses to
one user, but it is not neccesary. I only need this to happen when a
user is created on email submission and skip new user creation if the
username already exists.

Thanks in advance,
Kyle Balling
SCI Institute,
Universtiy of Utah


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.

Thanks for all the input,
Yes I have looked into the CanonicalizeEmail stuff, but the problem
is that the emails come from many different domain, mostly known, but a
few that are unknow. Really the task is to bypass the error when RT
tries to autocreate a user on email submission. In other words, even if
it errors out, go ahead and create the ticket and assume the user name
to be correct.

Ruslan Zakirov wrote:>On 8/31/05, Kyle Balling kballing@sci.utah.edu wrote:

Hello RT world,

I am in a jam. This is the situation: I have configured RT to
authenticate users on our NIS server. So, when email is submitted, a
valid username is created by chopping the email address in two (i.e.
joe@domain.com becomes user ‘joe’ with email joe@domain.com). This lets
new users login correctly to rt with their NIS password. So it is
important to create users like that.

Here is the problem: Joe also has another email acount,
joe@blah.org, and when he sends mail to RT from this e-mail address he
gets a error message back and no ticket is created. RT recognizes
joe@blah.org as a new address and tries to create a user. When it gets a
username from his email, ‘joe’, and tries to create a new user, it
cannot because a user ‘joe’ already exists. I need to fix this problem.

If blah.org is known domain then you can do it. If it random domain
for example Joe’s free email address, but Bob uses another domain,
then no.

In the first case you can use $RT::CanonicalizeEmailAddressMatch and
$RT::CanonicalizeEmailAddressReplace RT config options, see inline
descriptions in RT config and search for examples on the wiki and in
the lists archive.

How can I make RT realize that if a new email address has the same
username as an existing one, then it should assume it belongs to that
user? Then it can add that new address to the existing user or overwrite
the existing users old email. Of course we will assume that there are no
users with conflicting email adresses (i.e. user1 has email
bob@domain.com and user2 has email bob@otherdomain.com). It is safe to
say that all email addresses with the same username belong to the same user

Which also brings up the topic of assigning multiple email addresses to
one user, but it is not neccesary. I only need this to happen when a
user is created on email submission and skip new user creation if the
username already exists.

Thanks in advance,
Kyle Balling
SCI Institute,
Universtiy of Utah


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

OK, after hours and hours of pouring over the code in
/opt/rt3/lib/RT/Interface/Email.pm I have a solution.

Now if there is a user, for example Joe, who has two or three or 10
email addresses, RT will make it work. For example if Joe uses,
joe@domain1.com and joe@domain2.com he will be able to create tickets by
email and RT will not create two users or give an error. So here is what
I changed.

(From Email.pm with changes commented ) ---------------

{{{ Create User

sub CreateUser {
my ($Username, $Address, $Name, $ErrorsTo, $entity) = @_;
my $NewUser = RT::User->new($RT::SystemUser);

I inserted this part to give me normal user names instead of the

entire email address as the username
my ($name, $domain) = split(/@/, $Address);

   my ($Val, $Message) =
  $NewUser->Create(Name => $name,     ##### used to be ($Username || 

$Address),
EmailAddress => $Address,
RealName => $Name,
Password => undef,
Privileged => 0,
Comments => ‘Autocreated on ticket submission’
);

 unless ($Val) {

    # Deal with the race condition of two account creations at once
the function LoadByName doesn’t work for some reason.

if ($Username) {

$NewUser->LoadByName($Username);

}

#This seems to work and updates the user’s email address to the most
recently used one
if ($name){
$NewUser->Load($name);
$NewUser->SetEmailAddress($Address)
}

    unless ($NewUser->Id) {
        $NewUser->LoadByEmail($Address);
    }

  unless ($NewUser->Id) {
        MailError( To => $ErrorsTo,
                   Subject => "User could not be created",
                   Explanation => "User creation failed in 

mailgateway: $Mes
sage",
MIMEObj => $entity,
LogLevel => ‘crit’
);
}
}

my $CurrentUser = RT::CurrentUser->new();

    $CurrentUser->LoadByEmail($Address);

unless ($CurrentUser->id) {
        $RT::Logger->warning("Couldn't load user '$Address'.".  

“giving up”)
;
MailError( To => $ErrorsTo,
Subject => “User could not be loaded”,
Explanation => “User ‘$Address’ could not be
loaded
in the mail gateway”,
MIMEObj => $entity,
LogLevel => ‘crit’
);
}

return $CurrentUser;

}

}}}

That seems to work and is a good work around if a single username has to
be mantained for multiple emails.
Please tell me if there are any errors.

Kyle Balling wrote:

OK, after hours and hours of pouring over the code in
/opt/rt3/lib/RT/Interface/Email.pm I have a solution.

can you submit a diff patch file?

regards,
Andraz

BOFH excuse #403:

Sysadmin didn’t hear pager go off due to loud music from bar-room speakers.

signature.asc (189 Bytes)

smime.p7s (1.86 KB)

Kyle Balling kballing@sci.utah.edu writes:

OK, after hours and hours of pouring over the code in
/opt/rt3/lib/RT/Interface/Email.pm I have a solution.
Now if there is a user, for example Joe, who has two or three or 10
email addresses, RT will make it work. For example if Joe uses,
joe@domain1.com and joe@domain2.com he will be able to create tickets by
email and RT will not create two users or give an error. So here is what
I changed.
(From Email.pm with changes commented ) ---------------
<-snip->
That seems to work and is a good work around if a single username has to
be mantained for multiple emails.
Please tell me if there are any errors.

Is there any reason why overlaying CanonicalizeEmailAddress (or
CanonicalizeUserInfo, if you have complex requirements) will not fit
your needs?

From a cursory glance at your code, all email addresses joe@
seem to be mapped to the user joe. What happens if you have two
distinct users who both have ‘joe’ as the localpart of (some) of their
mail addresses? Is this really the intended behaviour?

Espen Wiborg espenhw@ovitas.no
There are 293 ways to make change for a dollar.

I had the a similar problem to this. I had the situation where a user
can have multiple email aliases within MS Exchange 5.5 LDAP. e.g.

UserName: joeb
Primary Email: joeb@company.com
Alternate Email 1: joe.b@company.com
Alternate Email 2: joe.bloggs@company.com

To get all of the above email addresses converted into username joeb
when using both the email and web interface used
CreateUserFromExternalAuth (as on the wiki) and amended it to cater for
multiple email addresses. You can see the results on the wiki here:

http://wiki.bestpractical.com/index.cgi?AutoCreateAndCanonicalizeUserInfo

Hope this helps

Phil Cole
filc@ntlworld.comOn Wed, 2005-08-31 at 15:36 -0400, tmaciak@ci.grand-rapids.mi.us wrote:

I ran into a similar problem like this just a few days ago because we are using LDAP lookups for user profiles on creation (and using tacacs to authenticate on the windows domain). My problem was more related to emails creating new tickets with different usernames and trying to look it up with that email instead of the network name. Anyway I ended up just doing a LDAP lookup with email address and then creating the email address in the db as our main domain name.

One thing I can think of that might help you is to enter the full “user@domain” upon creation, and then when a user logs in (they can use their
Network id) to append your common domain to their id before you authenticate. Just a thought. More than 1 way to skin a cat though.

T.J. Maciak

Internet/Intranet Developer
Department of IT
City of Grand Rapids
P: (616)456-3713
F: (616)456-3448

-----Original Message-----
From: Kyle Balling [mailto:kballing@sci.utah.edu]
Sent: Wednesday, August 31, 2005 3:06 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] [Fwd: Multiple email addresses for a single login name]

Hello RT world,

I am in a jam. This is the situation:  I have configured RT to authenticate users on our NIS server. So,  when email is submitted, a valid username is created by chopping the email address in two (i.e. 

joe@domain.com becomes user ‘joe’ with email joe@domain.com). This lets new users login correctly to rt with their NIS password. So it is important to create users like that.

Here is the problem: Joe also has another email acount, joe@blah.org, and when he sends mail to RT from this e-mail address he gets a error message back and no ticket is created. RT recognizes joe@blah.org as a new address and tries to create a user. When it gets a username from his email, ‘joe’, and tries to create a new user, it cannot because a user ‘joe’ already exists. I need to fix this problem.

How can I make RT realize that if a new email address has the same username as an existing one, then it should assume it belongs to that user? Then it can add that new address to the existing user or overwrite the existing users old email. Of course we will assume that there are no users with conflicting email adresses (i.e. user1 has email bob@domain.com and user2 has email bob@otherdomain.com). It is safe to say that all email addresses with the same username belong to the same user

Which also brings up the topic of assigning multiple email addresses to one user, but it is not neccesary. I only need this to happen when a user is created on email submission and skip new user creation if the username already exists.

Thanks in advance,
Kyle Balling
SCI Institute,
Universtiy of Utah


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

I didn’t get any replies when I fist sent this message, I was really
hoping someone has an idea what could possibly be wrong. Any help would
be greatly appreciated.------- original message ----

Hi, I have followed the instructions from the wiki about how to install
rt 3.4.4 on RHEL4 with fastcgi, and i’m suprised that it doesn’t work.
when I browse to login, I can get the login page, but then it says:

You’re almost there!
You haven’t yet configured your webserver to run RT. You appear to have
installed RT’s web interface correctly, but haven’t yet configured your
web server to “run” the RT server which powers the web interface. The
next step is to edit your webserver’s configuration file to instruct it
to use RT’s mod_perl, fastcgi or speedycgi handler.

my httpd config is almost the same as it shows from the wiki at:
http://wiki.bestpractical.com/index.cgi?RHEL4InstallGuide
Here is what i have:

LoadModule fastcgi_module modules/mod_fastcgi.so

NameVirtualHost *:80

FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 9

<VirtualHost *:80>
ServerName citysupport
DocumentRoot /opt/rt3/share/html/
ErrorLog logs/citysupport/error_log
AddHandler fastcgi-script .fcgi
<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None

Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

Any help would be tremendously appreciated…

Justin Zygmont justin@cityfone.net writes:

ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

This isn’t my forte at all, but shouldn’t this be

 ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

?

What do the logs say?

Leif Nixon - Systems expert
National Supercomputer Centre - Linkoping University

Justin Zygmont wrote:

I didn’t get any replies when I fist sent this message, I was really
hoping someone has an idea what could possibly be wrong. Any help would
be greatly appreciated.

------- original message ----

Hi, I have followed the instructions from the wiki about how to install
rt 3.4.4 on RHEL4 with fastcgi, and i’m suprised that it doesn’t work.
when I browse to login, I can get the login page, but then it says:

You’re almost there!
You haven’t yet configured your webserver to run RT. You appear to have
installed RT’s web interface correctly, but haven’t yet configured your
web server to “run” the RT server which powers the web interface. The
next step is to edit your webserver’s configuration file to instruct it
to use RT’s mod_perl, fastcgi or speedycgi handler.

my httpd config is almost the same as it shows from the wiki at:
Request Tracker Wiki
Here is what i have:

LoadModule fastcgi_module modules/mod_fastcgi.so

NameVirtualHost *:80

FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120
-processes 9

<VirtualHost *:80>
ServerName citysupport

Are you connecting to the machine with http://citysupport/ ?

Servername is usually a fully qualified name.

Graham.

Leif Nixon wrote:

Justin Zygmont justin@cityfone.net writes:

ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

This isn’t my forte at all, but shouldn’t this be

 ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

?

What do the logs say?

No errors were showing up in the logs, but from the suggestions you gave
I think i may have finally got it, it also means changing the WebPathURL
to match what the scriptalias is. I don’t know why the wiki used /rt,
but I’ve since corrected it.

Now all I have to do is reinstall the cpan modules since I had to delete
my /root/.cpan Does anyone know if there is a way to force a reinstall
of these?

I had the same issue this week in installing mine - I have changed my
web path to be from the root ‘/’ and all is well again.

I am using basically the same setup you are - apache 2, rhel and
fastcgi with mysql. It’s been a harrowing week but i even managed to
get LDAP authentication working! Hang in there - the app is well
worth the effort.On 12/1/05, Justin Zygmont justin@cityfone.net wrote:

Leif Nixon wrote:

Justin Zygmont justin@cityfone.net writes:

ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

This isn’t my forte at all, but shouldn’t this be

 ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

?

What do the logs say?

No errors were showing up in the logs, but from the suggestions you gave
I think i may have finally got it, it also means changing the WebPathURL
to match what the scriptalias is. I don’t know why the wiki used /rt,
but I’ve since corrected it.

Now all I have to do is reinstall the cpan modules since I had to delete
my /root/.cpan Does anyone know if there is a way to force a reinstall
of these?


The rt-users Archives

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

Download a free sample chapter of RT Essentials from O’Reilly Media at http://rtbook.bestpractical.com

WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at http://bestpractical.com/services/training.html

Leif Nixon wrote:

Justin Zygmont justin@cityfone.net writes:

ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

This isn’t my forte at all, but shouldn’t this be

 ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

?

What do the logs say?

No errors were showing up in the logs, but from the suggestions you gave
I think i may have finally got it, it also means changing the WebPathURL
to match what the scriptalias is. I don’t know why the wiki used /rt,
but I’ve since corrected it.
because you can use any base URI for RT, for example:

Now all I have to do is reinstall the cpan modules since I had to delete
my /root/.cpan Does anyone know if there is a way to force a reinstall
of these?

Best regards, Ruslan.