[rt-users] SCRIP - User defined condition

2010-04-15 Thread Fritz , Jürgen
Hi,

after reading the docs and wiki (and didn't know perl) i didn't could solve my 
problem.

I need a User-defined-condition on a SCRIP:

The on-correspond-scrip should NOT execute

   if the email comes from hotl...@somewhere.com
   and the subject contains Your Call is


Background: an external hotline (which is in the Cc-List) gets his own mails 
back ... they are playing ping-pong

Who can help me with some code?

Thank you
Juergen

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Can't call method as_string (Kevin Falcone)

2010-04-15 Thread redssr

 Hello,
Mr. Kevin,

First of all  i am very very sory for the late reply.

Appreciable Thanks for your immediate reply. According to your suggestion i 
can't change the setting in the file as it will require to change settings in 
my AD server and my seniors are not allowing to do me so.

Is there any other way to solved this issue.

Thanks in Advance for the same.

Regards,

SSR
+919372525408  




Message: 4
Date: Wed, 3 Mar 2010 10:08:09 -0500
From: Kevin Falcone falc...@bestpractical.com
Subject: Re: [rt-users] Can't call method as_string
To: rt-users@lists.bestpractical.com
Message-ID: 20100303150809.gb...@jibsheet.com
Content-Type: text/plain; charset=us-ascii

On Wed, Mar 03, 2010 at 12:46:10AM -0500, red...@linuxmail.org wrote:
   I'm new to RT and Perl, but with some good skills with Linux.
  Can't call method as_string on an undefined value 
 at/opt/rt3/local/plugi=
  ns/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pmline 100
   'group' =3D  'svn Users',
   'group_attr'=3D  'svn Users',

I doubt the group and the group_attr are both named 'svn Users' and
you're generating invalid group search syntax.

-kevin

Message: 4
Date: Wed, 03 Mar 2010 00:46:10 -0500
From: red...@linuxmail.org
Subject: [rt-users] Can't call method as_string
To: rt-users@lists.bestpractical.com
Message-ID: 8cc88abf6733901-1e20-3...@web-mmc-m01.sysops.aol.com
Content-Type: text/plain; charset=us-ascii



 

 
 I'm new to RT and Perl, but with some good skills with Linux.

1) I Have installed successfully RT, logging on with no errors with local u

sers end logging on successful

2)But when i login the url with A D credentials it gives me the bellow err

or. on the browser

Can't call method as_string on an undefined value at/opt/rt3/local/plugi=

ns/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pmline 100



  for first time, but when i refreshes the same page i gets the login 
successf

ully for the same. This happens every time when i login after logoff.





Here goes the extra information.

--

Installed versions

--

Windows 2000 AD

  Centos 5.4 on RT server

R T 3.8.7

RT-Authen-ExternalAuth-0.08

mod_perl-2.0.4-6.el5





 bellow are the rt logs

tail -f /var/log/rt/rt.log





[Thu Feb 25 09:13:45 2010] [debug]: Attempting to use external auth servic

e: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/Ex

ternalAuth.pm:64)

[Thu Feb 25 09:13:45 2010] [debug]: Calling UserExists with $username (sha

ilesh.raitole) and $service (My_LDAP) (/opt/rt3/local/plugins/RT-Authen-Ex

ternalAuth/lib/RT/Authen/ExternalAuth.pm:105)

[Thu Feb 25 09:13:45 2010] [debug]: UserExists params:

username: shailesh.raitole , service: My_LDAP (/opt/rt3/local/plugins/RT-A

uthen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:274)

[Thu Feb 25 09:13:45 2010] [debug]: LDAP Search =3D=3D=3D  Base: dc=3Dvirt

ual,dc=3Dcom =3D=3D Filter: (((ObjectCategory=3DUser)(ObjectClass=3DPers

on))(samaccountname=3Dshailesh.raitole)) =3D=3D Attrs: l,cn,st,mail,sAMAcc

ountName,india,streetAddress,postalCode,telephoneNumber,samaccountname,sAM

AccountName (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/E

xternalAuth/LDAP.pm:304)

[Thu Feb 25 09:13:45 2010] [debug]: Password validation required for servi

ce - Executing... (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Au

then/ExternalAuth.pm:155)

[Thu Feb 25 09:13:45 2010] [debug]: Trying external auth service: My_LDAP

 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth

/LDAP.pm:16)

[Thu Feb 25 09:13:45 2010] [debug]: LDAP Search =3D=3D=3D  Base: dc=3Dvirt

ual,dc=3Dcom =3D=3D Filter: ((samaccountname=3Dshailesh.raitole)((Object

Category=3DUser)(ObjectClass=3DPerson))) =3D=3D Attrs: dn (/opt/rt3/local/

plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:43)

[Thu Feb 25 09:13:45 2010] [debug]: Found LDAP DN: CN=3Dshailesh raitole,C

N=3DUsers,DC=3Dvirtual,DC=3Dcom (/opt/rt3/local/plugins/RT-Authen-External

Auth/lib/RT/Authen/ExternalAuth/LDAP.pm:75)



Browser error



Can't call method as_string on an undefined value at/opt/rt3/local/plugi

ns/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pmline 100.



 The rt logs after refreshing the same url are as follows;'



tail -f /var/log/rt/rt.log



[Thu Feb 25 09:18:18 2010] [debug]: Reloading RT::User to work around a bu

g in RT-3.8.0 and RT-3.8.1 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/

html/Callbacks/ExternalAuth/autohandler/Auth:14)



Browser: successful login



Bellow are the configuration of my pem files.



vim 

[rt-users] Howto change user email

2010-04-15 Thread Ian Pellew
From r...@a_glance if I change a users email I get Email address in use.
How do I change his email address?

New installation  still finding my way with RT.

.


  

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Howto change user email

2010-04-15 Thread Kenneth Marshall
On Thu, Apr 15, 2010 at 06:08:59AM -0700, Ian Pellew wrote:
 From r...@a_glance if I change a users email I get Email address in use.
 How do I change his email address?
 
 New installation  still finding my way with RT.
 
 .

The E-mail addresses must be unique. Find the account(s) with the
E-mail address that you want to use and change it. Then you can
change the other account.

Cheers,
Ken

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Help with Approvals needed

2010-04-15 Thread Christian Loos
Am 12.04.2010 08:53, schrieb Brumm, Torsten / Kuehne + Nagel / Ham MI-ID:
 Dear List,
 i need some help or Ideas about Approvals of RT. I have to create a huge
 workflow with several approvals needed.
  
 i know already, that i can start several approvals within one template,
 i also know, that this templates can have perl code inside, but i'm not
 sure at the moment about the best way to create something like this:
  
 Scrip: OnCreate - CreateTickets - Template:Approval
  
 Template should look like this:
  
 if fieldA = xyz {
 Approval 1
 if fieldB = abc {
 Approval 2
 } else if fieldC =123 {
 Approval 3
 }
 }
  
 So i need some logic inside this approvals, my question:
  
 Is this doable inside the template part or is it better to put the logic
 inside a scrip and fire from the scrip several templates?
  
 Torsten
 
 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, Rainer Wunn, 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
 
 
 
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com

Hi Torsten,

I would create 3 templates: Approval1, Approval2 and Approval3 and
then choose the right template within the scrip

or

I would create one scrip, check the field and then create the
Approval tickets with RT::Ticket-Create.

I think a template shouldn't contain any business logic.

Chris


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Help with Approvals needed

2010-04-15 Thread Torsten Brumm
Hi Todd, Christian,
thanks for your replies. I did it in the way like Christian explained and
used several scrips to fire the templates.

Torsten

2010/4/15 Christian Loos cl...@netcologne.de

 Am 12.04.2010 08:53, schrieb Brumm, Torsten / Kuehne + Nagel / Ham MI-ID:
  Dear List,
  i need some help or Ideas about Approvals of RT. I have to create a huge
  workflow with several approvals needed.
 
  i know already, that i can start several approvals within one template,
  i also know, that this templates can have perl code inside, but i'm not
  sure at the moment about the best way to create something like this:
 
  Scrip: OnCreate - CreateTickets - Template:Approval
 
  Template should look like this:
 
  if fieldA = xyz {
  Approval 1
  if fieldB = abc {
  Approval 2
  } else if fieldC =123 {
  Approval 3
  }
  }
 
  So i need some logic inside this approvals, my question:
 
  Is this doable inside the template part or is it better to put the logic
  inside a scrip and fire from the scrip several templates?
 
  Torsten
 
  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, Rainer Wunn, 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
 
 
 
 
 
  Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
  Buy a copy at http://rtbook.bestpractical.com

 Hi Torsten,

 I would create 3 templates: Approval1, Approval2 and Approval3 and
 then choose the right template within the scrip

 or

 I would create one scrip, check the field and then create the
 Approval tickets with RT::Ticket-Create.

 I think a template shouldn't contain any business logic.

 Chris


 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com




-- 
MFG

Torsten Brumm

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

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Howto change user email

2010-04-15 Thread Andrea Perotti
Il 15/04/2010 15:08, Ian Pellew ha scritto:
 From r...@a_glance if I change a users email I get Email address in use.
 How do I change his email address?
I suggest you to use the MergeUser Extension, so you won't lose any
reference and both old and new addresses will remain valid.

hth

-- 
Andrea Perotti

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Howto change user email

2010-04-15 Thread Ian Pellew
Ummm - what is MergeUser - I have not seen it in the r...@a_glance menu options

I suggest you to use the MergeUser Extension, so you won't lose any . . .

.


  

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] NTLM-based Single Sign-On doesn't work - RT continues to present login screen

2010-04-15 Thread Ruslan Zakirov
On Thu, Apr 15, 2010 at 3:47 AM, Gladkovich, Sergey
sgladkov...@archinsurance.com wrote:
 Hi,

 I have a working instance of RT 3.8.7 running under Apache 2.2.3 on RHEL
 5.4.  The instance has been set up to authenticate users against Active
 Directory via RT::Authen::ExternalAuth  LDAP.  The LDAP authentication
 works fine (i.e. users log in with their AD credentials, and new users get
 created in RT when ticket requests come in via e-mail.)

 Now I need to implement Single Sign-On, so that the users at MSWin
 workstation could simply browse to the RT interface without having to type
 in their username/password again.  To do this I’ve followed the instructions
 outlined at http://blank.org/memory/output/rt-ad-sso.html and at
 http://wiki.bestpractical.com/view/NtlmAuthentication. I’ve also searched
 around the RT mailing list archives but couldn’t find anything that
 described the problem I’m having.

 The problem is that RT still presents the login screen when you go to its
 URL for the first time.

 My main questions are:

 Can NTLM  RT::Authen::ExternalAuth co-exist?

No, in terms of auth. As you use mod_ntlm and digest/basic HTTP auth,
so in RT you should enable WebExternalAuth to avoid login screen and
enable trust apache auth. ExternalAuth extension also fetches info
from LDAP about users and put it into RT's DB. I'm not sure if this
extension still can do info fetching with WebExternalAuth enabled.

 Is there a way to get debugging output from mod_ntlm?

Read mod_ntlm docs.

 Are there any additional pointers or advice regarding single sign-on with
 RT?

In most cases single sign-on solutions are implemented as mod_ for
apache, so apache does auth and pass username in environment variable
into RT. WebExternalAuth is the option to tell RT to trust the
environment.


 Besides this, any input on the issue would be highly appreciated.

 P.S.  Here what has been done so far, in a nutshell:

-- 
Best regards, Ruslan.

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

[rt-users] Trouble with CommandByMail

2010-04-15 Thread Kenneth Crocker
To list,

I have a bit of a problem. CommandByMail is working well with email from
privileged users. However, when I send in an email from my yahoo account, it
being non-LDAP and therefore doesn't exist in my USERS Table, it creates a
never-ending mailer daemon loop and my yahoo account gets hundreds and
hundreds of emails saying it couldn't get any user info on it.

What I expected to happen was for RT to reject the email as unprivileged and
an email notice stating that fact, but one-time only.

Does anyone have a way around this problem?

We definitely need to have CommanByMail but we don't want people to get
endless error email either.

Thanks.

Kenn
LBNL

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Web reply form show status dropdown for non-privileged users

2010-04-15 Thread Ski Kacoroski

This is perfect.  Just what I needed.

Thanks,

ski

On 04/09/2010 09:20 AM, Jerrad Pierce wrote:

tr
   td class=label
   |/lStatus/
   /td
   td class=value
 /Elements/SelectStatus, Name=Status, DefaultLabel =
loc([_1] (Unchanged), loc($Ticket-Status)), Default =  $ARGS{'Status'} ||
($Ticket-Status
eq $DefaultStatus ? undef : $DefaultStatus)
   /td
   /tr


Probably better to change

  /Elements/SelectStatus, Name=Status, DefaultLabel =
  loc([_1] (Unchanged), loc($Ticket-Status)), Default =  $ARGS{'Status'} ||
  ($Ticket-Status eq $DefaultStatus ? undef : $DefaultStatus)

To

%perl  print $Ticket-Status/%perl



--
When we try to pick out anything by itself, we find it
 connected to the entire universeJohn Muir

Chris Ski Kacoroski, ckacoro...@nsd.org, 206-501-9803
or ski98033 on most IM services

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


[rt-users] New installation: clicking Update Ticket generates a bad URL

2010-04-15 Thread Paul Waterstraat

When I Comment or Reply to a ticket in RT 3.8.7, enter a message, and
then hit the Update Ticket button, an apparently bad URL is generated.  
E.g.:


http://request.geology.ucdavis.eduticket/Display.html? 
id=2results=bd10...[stuff deleted]


My RT site is: http://request.geology.ucdavis.edu

If I modify the portion .eduticket/ to .edu/Ticket/ in the URL bar  
then I am taken to a:


Results
 o Message recorded

page.

So, why no slash / and a lowercase t instead of uppercase T in  
Ticket?


If I leave the Message area blank, I get taken to a working URL:

http://request.geology.ucdavis.edu/Ticket/Update.html


 - Paul.

--- ---
system config (abbreviated)

RT v3.8.7
Perl v5.8.8 under linux
# THE WEBSERVER:
Set($WebPath , );
Set($WebBaseURL , http://request.geology.ucdavis.edu;);
Set($WebURL , http://request.geology.ucdavis.edu;);
-
Browser: same result in Safari (Mac) v4.0.5, and Firefox (Mac) v3.6.3



Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com