[rt-users] REST Api - find reopen date

2014-02-06 Thread Florian Lohoff

Hi,
i am polling ticket queues for aged tickets and do some autoclosing.

Currently i close after 4 Weeks by looking at the Created date.
Now i have tickets which get reopened and more or less closed immediatly
because of the created date beeing old.

So i'd like to find out whether the ticket was reopened and when. I
currently fail how to find.

Example REST output for a reopened ticket. Creates is the
original dtae. It was resolved and reopened.

id: ticket/14657
Queue: Monitor
Owner: monitoradmin
Creator: monitoradmin
Subject: DEU.VITROC.1C70V0 VDSL2-KVZ
Status: open
Priority: 0
InitialPriority: 0
FinalPriority: 0
Requestors: devn...@zz.de
Cc:
AdminCc:
Created: Thu Jan 09 10:09:55 2014
Starts: Not set
Started: Thu Feb 06 10:11:44 2014
Due: Not set
Resolved: Thu Feb 06 10:17:25 2014
Told: Not set
LastUpdated: Thu Feb 06 10:17:27 2014
TimeEstimated: 0
TimeWorked: 0
TimeLeft: 0

Flo
-- 
Florian Lohoff f...@zz.de


signature.asc
Description: Digital signature


[rt-users] Forwarding an e-mail with an HTML alternative

2014-02-06 Thread Martin Drasar
Hi,

in our RT installation (4.0.6) we have a tool that sends e-mails to the
RT with Content-Type: multipart/alternative that I want to forward from
RT to all recipients. On the receiving end we have a scrip that
OnCorrespond notifies requestors, etc... I can make it send the
text/plain part easily, but I have troubles with the text/html part. I
have checked the templates.pod documentation where it states that if I
set the Content-Type inside the template to text/html, it will
autogenerate the multipart message and create the text/plain part by
itself. Which it does... but suboptimally at best. Is there a way to
just forward my handcrafted multipart message without much RT's
interference?

Thank you.

Martin


Re: [rt-users] How to grab requestor's first and last name in email address ?

2014-02-06 Thread Ethier, Michael
Hi,

I tried your suggestion and it doesn't work, RT complains:

[3270] [Thu Feb  6 12:50:36 2014] [error]: Scrip 25 IsApplicable failed: Can't 
locate object method First via package No object mapping for field (perhaps 
you forgot to load No object mapping for field?) at (eval 792) line 20.

When I try this code, it runs but it's not outputting what I need:
my $trueuser = $TicketObj-Requestors-UserMembersObj-First-RealName;
$RT::Logger-debug(trueuser is: .$trueuser);

Resulting output looks to be whatever is before the @ in the email address, 
not the RealName:

[3263] [Thu Feb  6 12:55:07 2014] [debug]: trueuser is: ethier ((eval 625):28)

Any other ideas ?

Thanks,
Mike


From: Landon Stewart [mailto:lstew...@iweb.com]
Sent: Wednesday, February 05, 2014 2:50 PM
To: Ethier, Michael
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] How to grab requestor's first and last name in email 
address ?

On 5 February 2014 11:16, Ethier, Michael 
meth...@cgr.harvard.edumailto:meth...@cgr.harvard.edu wrote:
Hello,

I need to obtain the first and last name that would be part of the requestor's 
email address.
For example, requestor email address comes in as:

From: Smith, Joe jsm...@mail.commailto:jsm...@mail.com

In this example I want parse out the Joe and Smith keywords and assign them 
to 2 variables
which I will use for comparison later.

I am writing a RT Scrip. Is this possible to do ?

The name of the requestor is stored within the UsersObj in the Requestors 
group object for the $Ticket.  You want the first UsersObj.  There's no way to 
know if it's the name is written Last, First or First Last so you'll have 
to figure that out somehow.  Usually a comma in a name field means Last, 
First though so the following is a decent bet.  I haven't tested this code but 
this ought to get you close anyway.

my $realname = $self-TicketObj-Requestors-UsersObj-First-RealName;
# Switch things around if there's a comma in the field.
$realname =~ s/(.*),\s*(.*)/$2 $1/ if $realname =~ /,/;

If they have First Last, Company it'll come out as ACME Inc., Jim Smith 
though which might not be terrible.
Worse would be Last, First - Position coming out as Jim - Manager Smith 
which might sound a little too familiar for business.

In my opinion you'd want to just leave it as-is so if it's Last, First and they 
get an email addressed to them with Dear Smith, Jim: they'll know it's 
because they have it that way in their mail client.

--
Landon Stewart :: lstew...@iweb.commailto:lstew...@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932




[rt-users] Having 'On Correspond Notify Owner' as default

2014-02-06 Thread Vegard Vesterheim
I added a scrip 'On Correspond Notify Owner', that notifies the owner of
a ticket when he/she is *not* among the AdminCCs. The change was simple
enough to add. 

The default behaviour seems counter-intuitive. Are there any good
reasons for not doing this be default?

 - Vegard V -


Re: [rt-users] Having 'On Correspond Notify Owner' as default

2014-02-06 Thread Kevin Falcone
On Thu, Feb 06, 2014 at 02:14:26PM +0100, Vegard Vesterheim wrote:
 I added a scrip 'On Correspond Notify Owner', that notifies the owner of
 a ticket when he/she is *not* among the AdminCCs. The change was simple
 enough to add. 
 
 The default behaviour seems counter-intuitive. Are there any good
 reasons for not doing this be default?

The default behavior in RT 4.2 is
'On Correspond Notify Owner and AdminCcs'
which will do the deduping if you're an owner and an admincc

-kevin


pgpdtOs3lzwS6.pgp
Description: PGP signature


[rt-users] RT doesn't quote previous conversation in reply (was: Re: Editor field suddenly red)

2014-02-06 Thread Stefan Gofferje
Does nobody have an idea what might be the problem? I'm really worried
that I somehow inadvertently messed up my installation and I need to get
to the bottom of this, because I need to decide if I give up on RT and
go to handling emails manually or with another system.
I have a nonprofit nature conservation website project which I worked on
for over 5 months to get it ready and I can't go hot without a way to
handle emails.

-Stefan

-- 
 (o_   Stefan Gofferje| SCLT, MCP, CCSA
 //\   Reg'd Linux User #247167   | VCP #2263
 V_/_  Heckler  Koch - the original point and click interface


On 02/05/2014 08:09 PM, Stefan Gofferje wrote:
 On 02/05/2014 07:15 PM, Stefan Gofferje wrote:
 On 02/05/2014 05:30 PM, Kevin Falcone wrote:
 The editor text field has been red when writing a Reply
 (Correspondence) since 4.0.0.  You don't note your version.
 It's more of a 'yellow' on Comments.  The red is meant to indicate
 that you're writing a reply to the customer, not something internal.

 You may have had a local modification that was cleared out in the
 restart, it has nothing to do with the timezone.

 message and templates seem to not be used. The templates are still there
 - I can access them from the menu.
 I tried changing the timezone back with no success.

 I don't understand your Template problem with the description here.

 Ah, sorry, I use 4.2.2

 The template problem is that it seems there's no template being used.
 Normally, when I reply to a ticket, the original message should be
 quoted. That also happened until that restart. Now when I reply to a
 ticket, only what I wrote is stored in the ticket and mailed to the
 requestor but no quotes of stuff before anymore.
 
 Did a bit more digging. So, templates do work - kinda. When I choose the
 text correspondence template, I get text emails, but still, the ticket
 content is not attached as it should be.
 I didn't change the template. It's still
 
 RT-Attach-Message: yes
 
 {$Transaction-Content()}
 
 
 By the way, when I choose comment instead of reply, I do get a white
 editor window, not a yellow one.
 
 -Stefan
 




smime.p7s
Description: S/MIME Cryptographic Signature


[rt-users] Trouble installing RT4.2.2 on Ubuntu 12.10

2014-02-06 Thread john boris
I am trying to install Rt on my Ubuntu 12.10 install. I am having issues
getting all the perl modules installed.

When I run testdeps I get:

sudo make testdeps

MAILGATE missing dependencies:
Net::SSL ...MISSING
Crypt::SSLeay ...MISSING
So I then try
sudo make fixdeps and get

errors that it can't compile them. So I tried to install them directly
using CPAN but get the same errors.

Any pointers on this?

TIA
-- 
John J. Boris, Sr.
Online Services
www.onlinesvc.com


Re: [rt-users] REST Api - find reopen date

2014-02-06 Thread Kevin Falcone
On Thu, Feb 06, 2014 at 11:40:53AM +0100, Florian Lohoff wrote:
 So i'd like to find out whether the ticket was reopened and when. I
 currently fail how to find.
 
 Example REST output for a reopened ticket. Creates is the
 original dtae. It was resolved and reopened.

There is nothing on the ticket level that tracks a re-open, you have
to scan the history with ticket/id/history or set up Scrips to save
data in a custom field on the ticket that tracks the reopen so you can
avoid walking the history.

-kevin


pgp_o3Mi6qyHk.pgp
Description: PGP signature


Re: [rt-users] Forwarding an e-mail with an HTML alternative

2014-02-06 Thread Kevin Falcone
On Thu, Feb 06, 2014 at 01:07:26PM +0100, Martin Drasar wrote:
 in our RT installation (4.0.6) we have a tool that sends e-mails to the
 RT with Content-Type: multipart/alternative that I want to forward from
 RT to all recipients. On the receiving end we have a scrip that
 OnCorrespond notifies requestors, etc... I can make it send the
 text/plain part easily, but I have troubles with the text/html part. I
 have checked the templates.pod documentation where it states that if I
 set the Content-Type inside the template to text/html, it will
 autogenerate the multipart message and create the text/plain part by
 itself. Which it does... but suboptimally at best. Is there a way to
 just forward my handcrafted multipart message without much RT's
 interference?

4.2 does a much better job passing along multipart mails.
You cannot easily force RT to send a custom alternative email,
especially not in 4.0.

-kevin


pgpvW15kDCmXl.pgp
Description: PGP signature


Re: [rt-users] How to grab requestor's first and last name in email address ?

2014-02-06 Thread Kevin Falcone
On Thu, Feb 06, 2014 at 01:02:22PM +, Ethier, Michael wrote:
When I try this code, it runs but it's not outputting what I need:
my $trueuser = $TicketObj-Requestors-UserMembersObj-First-RealName;
$RT::Logger-debug(trueuser is: .$trueuser);
 
Resulting output looks to be whatever is before the @ in the email 
 address, not the
RealName:
 
[3263] [Thu Feb  6 12:55:07 2014] [debug]: trueuser is: ethier ((eval 
 625):28)

RealName is set to the Email Address' 'phrase' which is the Smith,
Joe you mention.  I suspect your test email isn't sending what you
expect.  Or, the user already exists in your system with that bogus
RealName (you can confirm this by searching for the user in the admin
UI and reading the History tab).

You may want to try
$self-TransactionObj-ContentObj-GetHeader('From') and parse it
manually if you can't trust your Users table (which is what Requestors
is searching).

-kevin


pgp93V9w6aY_c.pgp
Description: PGP signature


Re: [rt-users] RT doesn't quote previous conversation in reply (was: Re: Editor field suddenly red)

2014-02-06 Thread Kevin Falcone
On Thu, Feb 06, 2014 at 04:42:21PM +0200, Stefan Gofferje wrote:
 Does nobody have an idea what might be the problem? I'm really worried

So far you've described a color issue, which is not a problem, and a
Template problem which I still don't understand.

  The template problem is that it seems there's no template being used.
  Normally, when I reply to a ticket, the original message should be
  quoted. That also happened until that restart. Now when I reply to a
  ticket, only what I wrote is stored in the ticket and mailed to the
  requestor but no quotes of stuff before anymore.
  
  Did a bit more digging. So, templates do work - kinda. When I choose the
  text correspondence template, I get text emails, but still, the ticket
  content is not attached as it should be.
  I didn't change the template. It's still
  
  RT-Attach-Message: yes
  
  {$Transaction-Content()}

The original message is *only* quoted if you click on Reply in the
transaction history, not Reply from the top of the page.

So far none of this sounds like an RT bug, it sounds like user error.

-kevin


pgpTFMJ3TtsqC.pgp
Description: PGP signature


Re: [rt-users] Trouble installing RT4.2.2 on Ubuntu 12.10

2014-02-06 Thread john boris
Problem resolved. I found this on Stackexchange:

http://stackoverflow.com/questions/12750662/install-perl-module-netssleay-through-cpan

But this resolved the dependancy

sudo apt-get install libcrypt-ssleay-perl



On Thu, Feb 6, 2014 at 10:49 AM, john boris jbori...@gmail.com wrote:

 I am trying to install Rt on my Ubuntu 12.10 install. I am having issues
 getting all the perl modules installed.

 When I run testdeps I get:

 sudo make testdeps

 MAILGATE missing dependencies:
 Net::SSL ...MISSING
 Crypt::SSLeay ...MISSING
 So I then try
 sudo make fixdeps and get

 errors that it can't compile them. So I tried to install them directly
 using CPAN but get the same errors.

 Any pointers on this?

 TIA
 --
 John J. Boris, Sr.
 Online Services
 www.onlinesvc.com




-- 
John J. Boris, Sr.
Online Services
www.onlinesvc.com


[rt-users] Linking tickets to other people's tickets

2014-02-06 Thread Ashley Ward
Hi All,

I’ve been doing some experimenting with RT 4.0.19 (we can’t use 4.2 as we’re 
using RTIR) and it would seem that you can’t link (any of the types of link) a 
ticket to another ticket unless you also own the other ticket, which seems 
strange (i.e. you can’t link your ticket to someone else’s).

It seems that you either need the modifyticket permission to be able to modify 
anyone’s ticket, or you need to steal the other ticket first. Is there a way of 
allowing this without having to give blanket modifyticket permissions to 
everyone?

Thanks

Ash




smime.p7s
Description: S/MIME cryptographic signature


Re: [rt-users] Linking tickets to other people's tickets

2014-02-06 Thread Kevin Falcone
On Thu, Feb 06, 2014 at 04:35:32PM +, Ashley Ward wrote:
 I’ve been doing some experimenting with RT 4.0.19 (we can’t use
 4.2 as we’re using RTIR) and it would seem that you can’t link
 (any of the types of link) a ticket to another ticket unless you also
 own the other ticket, which seems strange (i.e. you can’t link your
 ticket to someone else’s).
 
 It seems that you either need the modifyticket permission to be able
 to modify anyone’s ticket, or you need to steal the other ticket
 first. Is there a way of allowing this without having to give blanket
 modifyticket permissions to everyone?

http://bestpractical.com/docs/rt/4.0/RT_Config.html#StrictLinkACL

-kevin


pgp1JjA6j8Kl6.pgp
Description: PGP signature


Re: [rt-users] REST Api - find reopen date

2014-02-06 Thread Florian Lohoff
On Thu, Feb 06, 2014 at 11:20:30AM -0500, Kevin Falcone wrote:
 There is nothing on the ticket level that tracks a re-open, you have
 to scan the history with ticket/id/history or set up Scrips to save
 data in a custom field on the ticket that tracks the reopen so you can
 avoid walking the history.

I am walking the history now - not that many tickets and not that 
frequent. I would have expected a Date on Ticket level with the last
Status change. 

Flo
-- 
Florian Lohoff f...@zz.de


signature.asc
Description: Digital signature


Re: [rt-users] Linking tickets to other people's tickets

2014-02-06 Thread Ashley Ward
On 6 Feb 2014, at 16:56, Kevin Falcone falc...@bestpractical.com wrote:

 http://bestpractical.com/docs/rt/4.0/RT_Config.html#StrictLinkACL

Excellent! That’s sorted it. Thanks :)

—
Ash

smime.p7s
Description: S/MIME cryptographic signature


Re: [rt-users] REST Api - find reopen date

2014-02-06 Thread Kevin Falcone
On Thu, Feb 06, 2014 at 06:00:45PM +0100, Florian Lohoff wrote:
 On Thu, Feb 06, 2014 at 11:20:30AM -0500, Kevin Falcone wrote:
  There is nothing on the ticket level that tracks a re-open, you have
  to scan the history with ticket/id/history or set up Scrips to save
  data in a custom field on the ticket that tracks the reopen so you can
  avoid walking the history.
 
 I am walking the history now - not that many tickets and not that 
 frequent. I would have expected a Date on Ticket level with the last
 Status change. 

Tracking Status change at the ticket level isn't really helpful,
because you really want to know what it changed *from* which means you
still have to go back into Transactions.

If you want to track it at the ticket level, that's what Custom Fields
and a simple On Status Change Scrip with a custom Action is for.

-kevin


pgpMQi5vEsv28.pgp
Description: PGP signature


[rt-users] Looking for info on apache2 configuration rt-4.2.2

2014-02-06 Thread john boris
I am at the next step of installing rt-4.2.2 on Ubuntu 12.10. (I had a
working 3.6 RT install on a Fedora Server which is on life support at the
moment and have to make this move)

The install went fine except for some issues with PERL modules I resolved
but now I am at the web configuration spot. I am new to the configuration
of the apache2 server with its multiple file configuration. Although it
explains a lot in the web-deployment.pod it lacks telling you which
configuration file to use.

I am looking for a HOW-TO for this or someone who has done this that can
tell me which file the directives go. This server will only host an RT
instance and nothing else.The web server is working but only for the It
Works! page.

TIA.

-- 
John J. Boris, Sr.
Online Services
www.onlinesvc.com


Re: [rt-users] REST call to retrieve list of groups

2014-02-06 Thread Guadagnino Cristiano
Hi Alex

-Messaggio originale-
Da: Alex Vandiver
Inviato: Tue Feb 04 2014 18:46:32 GMT+0100 (CET)
A: rt-users@lists.bestpractical.com
Oggetto: Re: [rt-users] REST call to retrieve list of groups

 RT 4.2.2 adds a search endpoint for users and groups:

  rt ls -t groups
  id: group/1238
  Name: RT hackers
  Description: RT hackers
  Disabled: 0

  --

  id: group/14255
  Name: BPS Staff
  Description:
  Disabled: 0

  [...]

 The endpoint is /REST/1.0/search/groups

   - Alex


Alex, maybe I misunderstood you message.

I have just completed the upgrade to 4.2.2 (from 4.2.1), so I tried 
pasting this url in the browser:

http://amended/REST/1.0/search/groups

and this is the reply I got:

no value sent for required parameter 'query'
Stack:
   [/opt/rt4/share/html/REST/1.0/autohandler:54]
   [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:680]
   [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:368]
   [/opt/rt4/share/html/autohandler:53]

What am I missing?

T.I.A.

Bye
Cris

Re: [rt-users] RT doesn't quote previous conversation in reply

2014-02-06 Thread Stefan Gofferje
Hi,

On 02/06/2014 06:28 PM, Kevin Falcone wrote:
 So far you've described a color issue, which is not a problem, and a
 Template problem which I still don't understand.

Well, the color itself wasn't the issue. It was just that I *suddenly*
had a red editor field which looked like some error notification to me.
The last time I worked with RT was about 7 years ago...

 The original message is *only* quoted if you click on Reply in the
 transaction history, not Reply from the top of the page.

THAT works, thanks! Is that always like this under any circumstances or
is there a possibility that I inadvertently changed some other setting
when I changed the timezone in the config file?

 So far none of this sounds like an RT bug, it sounds like user error.

Nononono!!! I didn't mean to imply it's an RT bug! As I wrote, I just
wanted to change the timezone and suddenly things were behaving
differently, so I was really worried that I blew up something.
Ticket system down would have been a disaster for my project now because
we want to go hot at the weekend. And wolves - and their protection - is
a VERY controversial topic here in Finland, means, we're expecting a
flood of emails.

Thanks for the pointers!

-S


-- 
 (o_   Stefan Gofferje| SCLT, MCP, CCSA
 //\   Reg'd Linux User #247167   | VCP #2263
 V_/_  Heckler  Koch - the original point and click interface




smime.p7s
Description: S/MIME Cryptographic Signature


[rt-users] Help with Active Directory Auth on 4.2.2

2014-02-06 Thread Diego Andrade
Hi,

I need some help from you whom have already Request Tracker with Active 
Directory!

After struggle for some days trying to authenticate Active Directory users with 
the External Auth module I bring you my Apache Log and configuration of the 
Plugin. May someone help me with advices??? I would love to see my Request 
Tracker linked to the Active Directory of the company.

My Operational Systems are:
Request Tracker 4.2.2 - Ubuntu 13.10
Active Directory - Windows 2008 Server

Well after trying to figure out how the Plugin Works I wanted to make sure my 
Active Directory was acessible and the Bind account was working. So I check 
with the command:

ldapsearch -x -h pdcsti.stitelecom.local -p 389 -D 
cn=rt-ldap,cn=Users,dc=stitelecom,dc=local -w secret -s sub -b 
'cn=Users,dc=stitelecom,dc=local' ((objectClass=*))

When I do it the output is a loto f Users, Groups and other objects from the 
AD. So I suppose the AD is ready right??

Follow the RT part...

+In the /var/log/apache2/error.log++

[4638] [Thu Feb  6 14:41:01 2014] [info]: 
RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Disabled: , 
EmailAddress: r...@stitelecom.com.br, ExternalAuthId: rtop, Gecos: rtop, Name: 
rtop, Privileged: , RealName:  
(/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:685)
[4638] [Thu Feb  6 14:41:01 2014] [info]: Autocreated external user rtop ( 118 
) 
(/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:281)
[4638] [Thu Feb  6 14:41:01 2014] [info]: My_LDAP AUTH FAILED rtop (can't bind: 
LDAP_INVALID_CREDENTIALS 49 ) 
(/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:227)
[4638] [Thu Feb  6 14:41:01 2014] [error]: FAILED LOGIN for rtop from 
10.10.1.137 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:814)

++ In the RT_Siteconfig.pm: +++

Plugin( RT::Authen::ExternalAuth );
Set($ExternalAuthPriority,  [ 'My_LDAP' ] );
Set($ExternalInfoPriority,  [ 'My_LDAP' ] );
Set($AutoCreateNonExternalUsers,0);
Set($ExternalSettings, {

'My_LDAP'   =  {
'type'  =  'ldap',
'server'=  'pdcsti.stitelecom.local',
'user'  =  
'cn=rt-ldap,cn=Users,dc=stitelecom,dc=local',
'pass'  =  'secret',
'base'  =  'dc=stitelecom,dc=local',
'filter'=  '(objectclass=*)',
'group' =  
'cn=RTUsers,ou=RT4,ou=STI,dc=stitelecom,dc=local',
'group_attr'=  'uniqueMember',
'tls'   =  0,
'ssl_version'   =  3,
'net_ldap_args' = [version =  3   ],
'attr_match_list' = [
'Name',
'EmailAddress',
],
'attr_map' = {
'Name' = 'sAMAccountName',
'EmailAddress' = 'mail',
'ExternalAuthId' = 'sAMAccountName',
},
},
} );
1;


THANK YOU IN ADVANCE!


[Diego2013]

inline: image002.jpg

Re: [rt-users] Help with Active Directory Auth on 4.2.2

2014-02-06 Thread Bryon Baker
Here is mine which is working great
# WorkingLDAP Connection
'Connect_LDAP'  =  {
   'type'  =  'ldap',
   'server'=  '192.168.250.49',
   'user'  =  
'CN=Secret,OU=Users_Special,OU=Copesan,DC=Copesan,DC=local',
   'pass'  =  Secret,
   'base'  =  'DC=copesan,DC=local',
   'filter'=  '((ObjectCategory=User)(ObjectClass=Person))',
   'd_filter'  =  '(userAccountControl:1.2.840.113556.1.4.803:=2)',
   'tls'   =  0,
#  'ssl_version'   =  3,

   'net_ldap_args' = [ version = 3 ],
#  'group' =  'CN=RTUsers,OU=CampusServices,DC= 
mydomain,DC=mydomain,DC=edu',
#  'group_attr'=  'member',

   'attr_match_list'   = [   'Name', 'EmailAddress'   ],
   'attr_map'  = {   'Name' = 'sAMAccountName',
  'EmailAddress' = 'mail',
  'Organization' = 'physicalDeliveryOfficeName',
  'RealName' = 'cn',
'ExternalAuthId' = 'sAMAccountName',
 'Gecos' = 'sAMAccountName',
 'WorkPhone' = 'telephoneNumber',
  'Address1' = 'streetAddress',
  'City' = 'l',
 'State' = 'st',
   'Zip' = 'postalCode',
   'Country' = 'co'
}
 }
 }

I would question the conical name of the user the log email address is 
different from the name .local versus .com.br.  Should the local have a .br as 
well? Also in the conical name you do not have an OU in the path.

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bba...@copesan.commailto:cstep...@copesan.com
www.copesan.comhttp://www.copesan.com/
Servicing North America with Local Care

From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Diego Andrade
Sent: Thursday, February 06, 2014 11:46 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Help with Active Directory Auth on 4.2.2

Hi,

I need some help from you whom have already Request Tracker with Active 
Directory!

After struggle for some days trying to authenticate Active Directory users with 
the External Auth module I bring you my Apache Log and configuration of the 
Plugin. May someone help me with advices??? I would love to see my Request 
Tracker linked to the Active Directory of the company.

My Operational Systems are:
Request Tracker 4.2.2 - Ubuntu 13.10
Active Directory - Windows 2008 Server

Well after trying to figure out how the Plugin Works I wanted to make sure my 
Active Directory was acessible and the Bind account was working. So I check 
with the command:

ldapsearch -x -h pdcsti.stitelecom.local -p 389 -D 
cn=rt-ldap,cn=Users,dc=stitelecom,dc=local -w secret -s sub -b 
'cn=Users,dc=stitelecom,dc=local' ((objectClass=*))

When I do it the output is a loto f Users, Groups and other objects from the 
AD. So I suppose the AD is ready right??

Follow the RT part...

+In the /var/log/apache2/error.log++

[4638] [Thu Feb  6 14:41:01 2014] [info]: 
RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Disabled: , 
EmailAddress: r...@stitelecom.com.brmailto:r...@stitelecom.com.br, 
ExternalAuthId: rtop, Gecos: rtop, Name: rtop, Privileged: , RealName:  
(/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:685)
[4638] [Thu Feb  6 14:41:01 2014] [info]: Autocreated external user rtop ( 118 
) 
(/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:281)
[4638] [Thu Feb  6 14:41:01 2014] [info]: My_LDAP AUTH FAILED rtop (can't bind: 
LDAP_INVALID_CREDENTIALS 49 ) 
(/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:227)
[4638] [Thu Feb  6 14:41:01 2014] [error]: FAILED LOGIN for rtop from 
10.10.1.137 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:814)

++ In the RT_Siteconfig.pm: +++

Plugin( RT::Authen::ExternalAuth );
Set($ExternalAuthPriority,  [ 'My_LDAP' ] );
Set($ExternalInfoPriority,  [ 'My_LDAP' ] );
Set($AutoCreateNonExternalUsers,0);
Set($ExternalSettings, {

'My_LDAP'   =  {
'type'  =  'ldap',
'server'=  'pdcsti.stitelecom.local',
'user'  =  
'cn=rt-ldap,cn=Users,dc=stitelecom,dc=local',
'pass'  =  'secret',
'base'  =  'dc=stitelecom,dc=local',
'filter'=  '(objectclass=*)',
'group' =  
'cn=RTUsers,ou=RT4,ou=STI,dc=stitelecom,dc=local',
'group_attr'=  'uniqueMember',
'tls'   =  0,
'ssl_version'   =  3,

[rt-users] RES: Looking for info on apache2 configuration rt-4.2.2

2014-02-06 Thread Diego Andrade
If you following the Marc's guide for Ubuntu 13.10 on Ubuntu 12.10 as he states 
in the comments you can follow the edits he did for the Debian 7.2.

Give a look 
http://binarynature.blogspot.com.br/2013/10/install-request-tracker-4-on-ubuntu-server.html

Rgds,
Diego Andrade.

De: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] Em nome de john boris
Enviada em: quinta-feira, 6 de fevereiro de 2014 15:23
Para: rt-users@lists.bestpractical.com
Assunto: [rt-users] Looking for info on apache2 configuration rt-4.2.2

I am at the next step of installing rt-4.2.2 on Ubuntu 12.10. (I had a working 
3.6 RT install on a Fedora Server which is on life support at the moment and 
have to make this move)

The install went fine except for some issues with PERL modules I resolved but 
now I am at the web configuration spot. I am new to the configuration of the 
apache2 server with its multiple file configuration. Although it explains a lot 
in the web-deployment.pod it lacks telling you which configuration file to use.

I am looking for a HOW-TO for this or someone who has done this that can tell 
me which file the directives go. This server will only host an RT instance and 
nothing else.The web server is working but only for the It Works! page.

TIA.

--
John J. Boris, Sr.
Online Services
www.onlinesvc.comhttp://www.onlinesvc.com