[rt-users] rt-mailgate issues with 4.2.12 (Use of uninitialized value $NewSubject)

2016-02-09 Thread Poulter, Dale
We upgraded to 4.2.12 and everything looked ok.  However,  we are now unable to 
submit tickets via email using rt-mailgate. I have seen many posts but none of 
the proposed solutions seem to work.  We are using the same command as we did 
in 3.8.7 for sendmail .  Here is our setup.

Perl: 5.16.3
Rt-mailgate is using sendmail

testemail: "|/apps/rt4/bin/rt-mailgate  \
  --queue 'General' --action correspond \
  --url https://requesttracker.edu/ --no-verify-ssl"

In RT_SiteConfig.pm
Set($WebFallbackToRTLogin, "true");
Set($WebRemoteUserAutocreate, 1);


Error:
Command line  : not ok - Could not load a valid user

RT debug log; [20557] [Tue Feb  9 18:36:23 2016] [warning]: Use of 
uninitialized value $NewSubject in scalar chomp at 
/apps/rt4/sbin/../lib/RT/Interface/Email.pm line 1374. 
(/apps/rt4/sbin/../lib/RT/Interface/Email.pm:1374)
[20557] [Tue Feb  9 18:36:23 2016] [error]: Couldn't parse or find sender's 
address (/apps/rt4/sbin/../lib/RT/Interface/Email/Auth/MailFrom.pm:74)
[20557] [Tue Feb  9 18:36:23 2016] [error]: Could not record email: Could not 
load a valid user (/apps/rt4/share/html/REST/1.0/NoAuth/mail-gateway:75)







--Dale

---
Dale Poulter
Coordinator, Search and Core Services
Library Digital Services
Vanderbilt University
419 21st Avenue South, Room 812
Nashville, TN  37203-2427
(615)343-5388
(615)207-9705 (cell)
dale.poul...@vanderbilt.edu


-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany — March 14 & 15, 2016

Re: [rt-users] How to send Custom Field values to SYSLOG

2016-02-09 Thread roeland
Allright . got it.
It was more obvious then expected!

RT->Logger->error($ticket->SubjectTag ." , ".
$ticket->FirstCustomFieldValue('generatorUri')); 



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/How-to-send-Custom-Field-values-to-SYSLOG-tp61314p61315.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016


[rt-users] RT 4.2 suddenly reset to a nonsensical view

2016-02-09 Thread Boris Epstein
Hello listmates,

Has anybody ever discovered a situation where all of a sudden your view
resets to a non-sensical view where your search, tickets, etc. configs -
all the advanced options - are gone and all you see is a view which is
essentially useless. Tickets, however, seem to be there - if you specify
them by number.

Any idea what this could be - or how to reset it to something reasonable?

Thanks.

Boris.

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany — March 14 & 15, 2016

Re: [rt-users] RT 4.2 suddenly reset to a nonsensical view

2016-02-09 Thread Boris Epstein
On Tue, Feb 9, 2016 at 4:01 PM, Matt Zagrabelny  wrote:

> On Tue, Feb 9, 2016 at 2:57 PM, Boris Epstein 
> wrote:
> > Hello listmates,
> >
> > Has anybody ever discovered a situation where all of a sudden your view
> > resets to a non-sensical view where your search, tickets, etc. configs -
> all
> > the advanced options - are gone and all you see is a view which is
> > essentially useless. Tickets, however, seem to be there - if you specify
> > them by number.
> >
> > Any idea what this could be - or how to reset it to something reasonable?
>
> Is it SelfService?
>
> Unprivileged users are forced to the SelfService web space of RT.
>
> Is your account privileged?
>
> -m
>

Matt,

It may be - I am a privilleged user and have not seen self-service in a
long time - it may well be. Question is if that is the case how did I lose
my privilleges? What happened?

This is positively weird.

Thanks.

Boris.

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany — March 14 & 15, 2016

Re: [rt-users] RT 4.2 suddenly reset to a nonsensical view

2016-02-09 Thread Shawn Moore
On 2016年2月9日 at 15:57:44, Boris Epstein (borepst...@gmail.com) wrote:
Hello listmates,
Hi Boris,

Has anybody ever discovered a situation where all of a sudden your view resets 
to a non-sensical view where your search, tickets, etc. configs - all the 
advanced options - are gone and all you see is a view which is essentially 
useless. Tickets, however, seem to be there - if you specify them by number.

Any idea what this could be - or how to reset it to something reasonable?
What’s the URL? Sounds like you ended up in self-service.

Thanks.

Boris.

Thanks,
Shawn
-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany — March 14 & 15, 2016

Re: [rt-users] RT 4.2 suddenly reset to a nonsensical view

2016-02-09 Thread Matt Zagrabelny
On Tue, Feb 9, 2016 at 3:05 PM, Boris Epstein  wrote:
> Shawn,
>
> Yes indeed, the url is: http:///rt/SelfService/
>
> It is unwilling to go anywhere else.
>
> Any idea why this would happen?

Somehow your account became unprivileged.

I'm not sure if there is a history of pivilegeness of users, but there
could be something in the database.

-m

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016


[rt-users] Ticket_Overlay/Attachment_Overlay->Import for 4.x?

2016-02-09 Thread Curtis Bruneau
Has anyone tried to port the 'Import' methods in the old 3.x 
Ticket_Overlay.pm, and Attachment_Overlay.pm to RT 4.x? (4.2.x here).


I understand the new way to do overlays are to use Ticket_Local.pm or 
Attachment_Local.pm file names.


I'm going to try copying over the methods and dependent methods. I'm 
just curious if anyone has tried to do this before. I'm trying to use an 
export/import script that uses those methods. There's also Create 
methods in the _Overlay.pm that is a bit concerning as it appears to 
overlay the ones in Ticket.pm/Attachment.pm. I'm currently in a 
development environment and will likely only use it temporarily when 
doing the import so it doesn't need to work with a running web RT.


Thanks for your time,

Curtis

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016


Re: [rt-users] RT 4.2 suddenly reset to a nonsensical view

2016-02-09 Thread Matt Zagrabelny
On Tue, Feb 9, 2016 at 2:57 PM, Boris Epstein  wrote:
> Hello listmates,
>
> Has anybody ever discovered a situation where all of a sudden your view
> resets to a non-sensical view where your search, tickets, etc. configs - all
> the advanced options - are gone and all you see is a view which is
> essentially useless. Tickets, however, seem to be there - if you specify
> them by number.
>
> Any idea what this could be - or how to reset it to something reasonable?

Is it SelfService?

Unprivileged users are forced to the SelfService web space of RT.

Is your account privileged?

-m

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016


Re: [rt-users] RT 4.2 suddenly reset to a nonsensical view

2016-02-09 Thread Boris Epstein
Shawn,

Yes indeed, the url is: http:///rt/SelfService/

It is unwilling to go anywhere else.

Any idea why this would happen?

Thanks for excellent response.

Boris.


On Tue, Feb 9, 2016 at 4:02 PM, Shawn Moore  wrote:

> On 2016年2月9日 at 15:57:44, Boris Epstein (borepst...@gmail.com) wrote:
>
> Hello listmates,
>
> Hi Boris,
>
> Has anybody ever discovered a situation where all of a sudden your view
> resets to a non-sensical view where your search, tickets, etc. configs -
> all the advanced options - are gone and all you see is a view which is
> essentially useless. Tickets, however, seem to be there - if you specify
> them by number.
>
> Any idea what this could be - or how to reset it to something reasonable?
>
> What’s the URL? Sounds like you ended up in self-service.
>
> Thanks.
>
> Boris.
>
>
> Thanks,
> Shawn
>
>
> -
> RT 4.4 and RTIR Training Sessions (
> http://bestpractical.com/services/training.html)
> * Hamburg Germany — March 14 & 15, 2016
>

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany — March 14 & 15, 2016

Re: [rt-users] RT 4.2 suddenly reset to a nonsensical view

2016-02-09 Thread Boris Epstein
On Tue, Feb 9, 2016 at 4:10 PM, Matt Zagrabelny  wrote:

> On Tue, Feb 9, 2016 at 3:05 PM, Boris Epstein 
> wrote:
> > Shawn,
> >
> > Yes indeed, the url is: http:///rt/SelfService/
> >
> > It is unwilling to go anywhere else.
> >
> > Any idea why this would happen?
>
> Somehow your account became unprivileged.
>
> I'm not sure if there is a history of pivilegeness of users, but there
> could be something in the database.
>
> -m
>

Matt, Shawn:

Thank you!

Matt, actually it turned out to be something different. Somehow something
in the browsing history/cookies told the RT to kick me into SelfService. I
deleted my browsing history in Chrome - and that worked like a charm, I am
back to my familiar interface.

Wow, that was a scare:)

Thank you very much for your help, everybody!

Cheers,

Boris.

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany — March 14 & 15, 2016

Re: [rt-users] Ticket_Overlay/Attachment_Overlay->Import for 4.x?

2016-02-09 Thread Curtis Bruneau
I noticed the 4.0.x code base has ->Import included in Ticket.pm and 
Attachment.pm. I'm going to try starting from there but I'm wondering if 
there's any known technical reasons why these methods may not work in rt 
4.2.x


Thanks again,

Curtis

On 2/9/2016 5:10 PM, Curtis Bruneau wrote:
Has anyone tried to port the 'Import' methods in the old 3.x 
Ticket_Overlay.pm, and Attachment_Overlay.pm to RT 4.x? (4.2.x here).


I understand the new way to do overlays are to use Ticket_Local.pm or 
Attachment_Local.pm file names.


I'm going to try copying over the methods and dependent methods. I'm 
just curious if anyone has tried to do this before. I'm trying to use 
an export/import script that uses those methods. There's also Create 
methods in the _Overlay.pm that is a bit concerning as it appears to 
overlay the ones in Ticket.pm/Attachment.pm. I'm currently in a 
development environment and will likely only use it temporarily when 
doing the import so it doesn't need to work with a running web RT.


Thanks for your time,

Curtis

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)

* Hamburg Germany  March 14 & 15, 2016



-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016


[rt-users] Problems with RT::Authen::ExternalAuth::LDAP after upgrade to 4.4

2016-02-09 Thread John Andersen
I'm hoping a second (or more) set of eyes can help me out here.

I upgraded from 4.2.12 to 4.4.0 and somehow broke LDAP authentication.
For background. this particular installation went live 10 years ago and has
been carried over (mostly flawlessly I might add) from version to version
over that 10 years; I try to stay on the most recent stable version.

Things I have done to test so far:

1) Tested with my existing config carried over from the working 4.2.12
install -- NO GOOD

2) I changed my settings to exactly what is in the documentation -- NO GOOD

3) I installed ldap-utils and tested my filters with success.  I'm sure
they work.  I have also confirmed that my ldap user is binding correctly
and can pull permissions.

Interestingly, I have the exact same settings on LDAPImport and it **IS**
working correctly.


The frustrating thing is that, even with debugging turned on (logging to
syslog), I can get no detailed error message on LDAP under either syslog or
the apache log.All I get is the following message:

---

Feb  9 23:00:15 rt RT: [21718] FAILED LOGIN for andersjp from 172.28.160.152

-



Internal auth is working.Here is my LDAP config.   Any ideas? Happy to
provide any troubleshooting info I have.


Also for what it's worth, the odd-looking ldap filter is a way to filter
out some unwanted data and has been working for years.  I also attempted
adding the '(&(...' to the beginning of the filters (which LDAP Auth seems
to infer automatically for some reason). Again, still wouldn't work.


-


Set( $ExternalAuthPriority,['LDAP_DIR3']);

Set( $ExternalInfoPriority,['LDAP_DIR3']);

Set( $ExternalServiceUsesSSLorTLS, 0);

Set( $AutoCreateNonExternalUsers, 1);


Set($ExternalSettings,  {

'LDAP_DIR3'   =>  {


'type'  => 'ldap',

'server'=> 'dir3.sch.ad',

'user'  => 'ldapb...@sch.ad',

'pass'  => '*censored*',

'base'  => 'dc=sch,dc=ad',


# ALL FILTERS MUST BE VALID LDAP FILTERS ENCASED IN
PARENTHESES!

# YOU **MUST** SPECIFY A filter AND A d_filter!!


# The filter to use to match RT-Users

'filter'=>  '(mail=*)(sAMAccountType=805306368)',

#'filter'   =>  '(objectClass=*)',


# The filter that will only match disabled users

'd_filter'  =>
'(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=2)',


#'tls'  =>  0,

#'ssl_version'  =>  3,

'net_ldap_args' => [version =>  3   ],

#'group'=>  'GROUP',

#'group_attr'   =>  'GROUP_ATTR',


'attr_match_list'   => ['Name',

'EmailAddress'

],


# The mapping of RT attributes on to LDAP attributes

'attr_map'  =>  {   'Name'  =>
'sAMAccountName',

'EmailAddress'  => 'mail',

'Organization'  =>
'company',

'RealName'  => 'cn',

'WorkPhone' =>
'telephoneNumber',

'MobilePhone'   => 'mobile',

}

}

}

);


For some added information, here is the WORKING LDAPImport config:

--

## LDAPImport Settings

Set( $LDAPHost, 'dir3.sch.ad' );

Set( $LDAPUser, 'ldapb...@sch.ad' );

Set( $LDAPPassword, '*censored*' );

Set( $LDAPBase, 'ou=SCH Users,dc=sch,dc=ad' );


Set( $LDAPFilter, '(&(mail=*)(sAMAccountType=805306368))' );

Set( $LDAPDisabledFilter,
'(&(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=2))'
);

Set( $LDAPSkipAutogeneratedGroup, 1 );

Set( $LDAPUpdateUsers, 1 );


# Get groups from LDAP too

Set( $LDAPGroupBase, 'ou=SCH Groups,dc=sch,dc=ad' );

Set( $LDAPGroupFilter, '(objectClass=group)' );

Set( $LDAPGroupMapping, {   Name=> 'cn',

Member_Attr => 'member',

Member_Attr_Value   => 'dn'

} );



Set( $LDAPMapping,

{

'Name'  =>  'sAMAccountName',

'EmailAddress'  =>  'mail',

'Organization'  =>  'company',

'UserCF.Department' =>  'department',

'RealName'  =>  'cn',

'WorkPhone' =>  'telephoneNumber',

'MobilePhone'   =>  'mobile'

}

);



I'd be grateful for any ideas or pointers!

Thank you,

John

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany — March 14 & 15, 2016