Re: [rt-users] Change the shown 'logged in as...' name

2011-10-28 Thread Izz Abdullah
I'm glad I could assist.

-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of declaya
Sent: Friday, October 28, 2011 1:50 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Change the shown 'logged in as...' name


Hi Izz,

That's it!! :D
I just forgot to clear the mason cache.
Thanks a LOT for this hint! 
Everything works as expected now.

I didn't even know that there is a wiki page about the mason cache:
http://requesttracker.wikia.com/wiki/CleanMasonCache
http://requesttracker.wikia.com/wiki/CleanMasonCache 

You made my day. Have a nice weekend!



Izz Abdullah wrote:
> 
> Did you clear the mason cache after making this change?
> 
> -Original Message-
> From: rt-users-boun...@lists.bestpractical.com
> [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of declaya
> Sent: Thursday, October 27, 2011 1:12 AM
> To: rt-users@lists.bestpractical.com
> Subject: [rt-users] Change the shown 'logged in as...' name
> 
> 
> Good morning,
> 
> I'm using mod_auth_kerb with Apache to authenticate our users. The
> authentication works fine, each user is recognized by their
> userPrincipalName from our AD which is mapped to RT as their username. 
> This causes to show also the userPrincipalNames in the main navigation
> bar,
> which confuses the users.
> So now my question is:
> How can I change the shown name in the navigation bar? It would be great
> if
> I could change it to the RealName of the user.
> I tried to change the /path/to/rt/share/html/Elements/Tabs file from
> $session{'CurrentUser'}->Name to $session{'CurrentUser'}->RealName in
> lines
> 385 and 731 but it didn't work.
> 
> I would really appreciate some help. 
> Thanks in advance!
> 
> Have a nice day!
> -- 
> View this message in context:
> http://old.nabble.com/Change-the-shown-%27logged-in-as...%27-name-tp32729334p32729334.html
> Sent from the Request Tracker - User mailing list archive at Nabble.com.
> 
> 
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  Washington DC, USA  October 31 & November 1, 2011
> *  Barcelona, Spain  November 28 & 29, 2011
> 
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  Washington DC, USA  October 31 & November 1, 2011
> *  Barcelona, Spain  November 28 & 29, 2011
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Change-the-shown-%27logged-in-as...%27-name-tp32729334p32736272.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Washington DC, USA  October 31 & November 1, 2011
*  Barcelona, Spain  November 28 & 29, 2011

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Washington DC, USA  October 31 & November 1, 2011
*  Barcelona, Spain  November 28 & 29, 2011


Re: [rt-users] Excepting certain queues from global scrips (my solution)

2011-10-28 Thread Lars Reimann

Hi all,

I can only support this feature request. All other methods seem 
unsatisfactory to me atm. The proposed changes from Andrew make sense to 
me, altough I had not time to review and test the code.


I can only encourage the coding team to interate such a feature.

Have a nice weekend,
LR

On 08.08.2011 23:27, Daugherity, Andrew W wrote:

So, after searching for ways to accomplish this, and seeing it is a common feature 
request (sometimes termed "disable notifications for specific queues"), with 
some existing solutions that accomplish it but weren't quite what I was looking for, I 
decided to write my own.  It is implemented as custom condition Perl modules (installed 
under $RTHOME/local/lib/RT/Condition).

After installation you get new conditions to use in your scrips like "On Correspond (w/queue 
exceptions)".  The queue exception list is set in your RT_SiteConfig.  You can have a mixture of 
"truly global" and "global with exceptions" scrips by changing which condition they use.


I don't claim to be a Perl hacker so I'm sure there are some things that could 
be done better, but this works for me, at least with RT 4.0.1.  Perhaps someone 
with better knowledge could explain why in my StatusChangeQueueExcept module I 
had to instantiate the other checks field-by-field instead of just passing 
$self.


Attached is my README and the tarball, which I hope makes it through to the 
list.  It is not yet packaged as an extension or plugin; I might do so if there 
is demand and I receive guidance as to which, if either, is appropriate.


Andrew Daugherity
Systems Analyst
Division of Research, Texas A&M University
adaugher...@tamu.edu



2011 Training: http://bestpractical.com/services/training.html



RT Training Sessions (http://bestpractical.com/services/training.html)
*  Washington DC, USA — October 31 & November 1, 2011
*  Barcelona, Spain — November 28 & 29, 2011

Re: [rt-users] Change the shown 'logged in as...' name

2011-10-28 Thread Garry Booth
Hi

We modified httpd in /etc/init.d/rc.d so any restart of apache does it by 
defaulf:
start() {
echo -n $"Starting $prog: "
echo -n $"Zapping MASON cache: "
rm -fr /opt/rt3/var/mason_data/obj
check13 || exit 1
LANG=$HTTPD_LANG daemon $httpd $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}
return $RETVAL
}

regards

Garry





On 28 Oct 2011, at 07:49, declaya wrote:

> 
> Hi Izz,
> 
> That's it!! :D
> I just forgot to clear the mason cache.
> Thanks a LOT for this hint! 
> Everything works as expected now.
> 
> I didn't even know that there is a wiki page about the mason cache:
> http://requesttracker.wikia.com/wiki/CleanMasonCache
> http://requesttracker.wikia.com/wiki/CleanMasonCache 
> 
> You made my day. Have a nice weekend!
> 
> 
> 
> Izz Abdullah wrote:
>> 
>> Did you clear the mason cache after making this change?
>> 
>> -Original Message-
>> From: rt-users-boun...@lists.bestpractical.com
>> [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of declaya
>> Sent: Thursday, October 27, 2011 1:12 AM
>> To: rt-users@lists.bestpractical.com
>> Subject: [rt-users] Change the shown 'logged in as...' name
>> 
>> 
>> Good morning,
>> 
>> I'm using mod_auth_kerb with Apache to authenticate our users. The
>> authentication works fine, each user is recognized by their
>> userPrincipalName from our AD which is mapped to RT as their username. 
>> This causes to show also the userPrincipalNames in the main navigation
>> bar,
>> which confuses the users.
>> So now my question is:
>> How can I change the shown name in the navigation bar? It would be great
>> if
>> I could change it to the RealName of the user.
>> I tried to change the /path/to/rt/share/html/Elements/Tabs file from
>> $session{'CurrentUser'}->Name to $session{'CurrentUser'}->RealName in
>> lines
>> 385 and 731 but it didn't work.
>> 
>> I would really appreciate some help. 
>> Thanks in advance!
>> 
>> Have a nice day!
>> -- 
>> View this message in context:
>> http://old.nabble.com/Change-the-shown-%27logged-in-as...%27-name-tp32729334p32729334.html
>> Sent from the Request Tracker - User mailing list archive at Nabble.com.
>> 
>> 
>> RT Training Sessions (http://bestpractical.com/services/training.html)
>> *  Washington DC, USA  October 31 & November 1, 2011
>> *  Barcelona, Spain  November 28 & 29, 2011
>> 
>> RT Training Sessions (http://bestpractical.com/services/training.html)
>> *  Washington DC, USA  October 31 & November 1, 2011
>> *  Barcelona, Spain  November 28 & 29, 2011
>> 
>> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Change-the-shown-%27logged-in-as...%27-name-tp32729334p32736272.html
> Sent from the Request Tracker - User mailing list archive at Nabble.com.
> 
> 
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  Washington DC, USA  October 31 & November 1, 2011
> *  Barcelona, Spain  November 28 & 29, 2011


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Washington DC, USA  October 31 & November 1, 2011
*  Barcelona, Spain  November 28 & 29, 2011