Re: [rt-users] Recommended method for auto creating users with Active Directory and Authen-ExternalAuth

2010-01-18 Thread L B
I tried what Ken said, and it didn't work on my login because of this
code in the RT-External-Authen plugin :

ExternalAuth/LDAP.pm : line 230
[...]
   } else {
# If there's only one match, we're good; more than one and
# we don't know which is the right one so we skip it.
if ($ldap_msg-count == 1) {
my $entry = $ldap_msg-first_entry();
[...]

I had two sAMAccountName returned because my AD account with my email
address has one normal sAMAccountName, and another admin one (in the
same AD entry).

To make it work, I modified the ldap filter :
Set($EmailCompletionLdapFilter,
((objectclass=organizationalPerson)(!(sAMAccountName=admin*;

This filter will match my sAMAccountName but not the one starting with
admin (replace this filter in your config). (Be careful of regular
users having a login matching this string)

Once I had only one and only one sAMAccountName, I disabled my current
account (changed all the values insided), I sent an email to my RT in
debug mode and here my new account got created with the AD login.

If a developer of this plugin read this, I think it would be nice to
add a $RT::Logger-info at this step in the code...
-- 
L.B.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

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


[rt-users] Error No recipients found. Not sending.

2010-01-18 Thread John Fitzpatrick
Hi There,

Hopefully someone can help me figure this out. I am in the process of
migrating RT from an old server to a new server. So far I have been able
to get everything configured properly, however I cannot get RT to send
emails on the new server.

In our existing setup, when an email is sent to our support email
address, a new ticket is created and the watchers get notified via email.

In my staging setup, when the email gets sent, a new ticket is created
and it seems that an attempt is made to send the emails but it fails.

Here is the log output:

Jan 15 17:21:56 ps003 RT: Converting 'ISO-8859-1' to 'utf-8' for
text/plain - 7th try.
Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
#13146
Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
#13147
Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
#13148
Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
#13149
Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
#13150
Jan 15 17:21:57 ps003 RT: About to prepare scrips for transaction #13150
Jan 15 17:21:57 ps003 RT: Found 3 scrips
Jan 15 17:21:57 ps003 RT: About to commit scrips for transaction #13150
Jan 15 17:21:57 ps003 RT: rt-3.6.5-20864-1263604917-27.1007-...@[server
PROTECTED] #1007/13150 - Scrip 4
(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:252)
Jan 15 17:21:57 ps003 RT: rt-3.6.5-20864-1263604917-27.1007-...@[server
PROTECTED] sent  To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL
PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL
PROTECTED] (/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:283)
Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
#13151
Jan 15 17:21:57 ps003 RT:
rt-3.6.5-20864-1263604917-459.1007-2...@[server PROTECTED] #1007/13150
- Scrip 24  (/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:252)
Jan 15 17:21:57 ps003 RT:
rt-3.6.5-20864-1263604917-459.1007-2...@[server PROTECTED] No
recipients found. Not sending.
(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:264)
Jan 15 17:21:57 ps003 RT: Ticket 1007 created in queue 'General' by
jfitzpatrick (/usr/share/request-tracker3.6/lib/RT/Ticket_Overlay.pm:756)
Jan 15 17:21:57 ps003 qmail: 1263604917.436679 delivery 24: success:
Connecting_to_http://[SERVER
PROTECTED]:8081//REST/1.0/NoAuth/mail-gateway_at_/usr/bin/rt-mailgate_line_102,__line_1./okTicket:_1007Queue:_GeneralOwner:_NobodyStatus:_newSubject:_7th_try.Requestor:_jfitzpatr...@mindsinc.ca_at_/usr/bin/rt-mailgate_line_111,__line_1./did_0+0+1/

I have installed RT under Ubuntu.

Server side I have manually installed qmail version 1.03 and setup a
.qmail-support file which invokes rt-mailgate as follows:

|rt-mailgate --queue general --action correspond --url http://[SERVER
PROTECTED]:8081/ --debug

qmail is installed on the same machine as RT.

Here are some more details:

Ubuntu Server 8.04 Hardy lenny/sid
uname -r
2.6.24-23-server
/usr/sbin/apache2 -v
Server version: Apache/2.2.8 (Ubuntu)
Server built:   Aug 18 2009 14:17:46

libapache2-mod-fastcgi2.4.6-0ubuntu1
libcgi-fast-perl  5.8.8-12ubuntu0.4
libfcgi-perl  0.67-2
request-tracker3.63.6.5-1
rt3.6-apache2 3.6.5-1

Relevant section of RT_SiteConfig.pm

Set($SenderMustExistInExternalDatabase , undef);
Set($CorrespondAddress , '[EMAIL PROTECTED]');
Set($CommentAddress , '[EMAIL PROTECTED]');

Set($MailCommand , 'sendmailpipe');
Set($SendmailArguments , -oi -t);
Set($SendmailPath , /usr/sbin/sendmail);
Set($UseFriendlyFromLine , 1);
Set($FriendlyFromLineFormat , \%s\ %s);
Set($UseFriendlyToLine , 0);
Set($FriendlyToLineFormat, \%s of $RT::rtname Ticket #%s\:;);
Set($NotifyActor, 0);

Thanks,

-- 
John Fitzpatrick
Minds Inc.
Landmark II Centre
Suite 105 - 1708 Dolphin Ave.
Kelowna, BC, Canada V1Y 9S4

office +1.250.862.8813 ext 228
fax +1.250.862.8814
web  www.mindsinc.ca
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

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


Re: [rt-users] rt-3.8.6 is already installed... Error code 1

2010-01-18 Thread Zach Boettner
Thanks so much to Matthew Seaman for all the technical instruction on how to
install RT! I really appreciate the help, Matthew, and have it up and
running, mostly, but do not know what I really did to get it finally
working.

Thanks again!

-Zach

-Original Message-
From: Matthew Seaman [mailto:m.sea...@infracaninophile.co.uk] 
Sent: Wednesday, January 06, 2010 12:40 AM
To: Zach Boettner
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] rt-3.8.6 is already installed... Error code 1

Zach Boettner wrote:
 Thanks for the detailed instructions, Matthew. I really appreciate it.
 However, my RT is still not quite working. Yes, mysql is running, I even
 have phpMyAdmin functional. I ran the following command, it created schema
 and populated tables, etc. perl rt-setup-database --action init --dba root
 --dba-password
 
 Now I can uncomment PerlRequire /usr/local/bin/webmux.pl in my httpd.conf
 file without killing apache, but I still get the following page when I go
to
 http://myserver/rt/
 
 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. If you need commercial support,
 please contact us at sa...@bestpractical.com.
 
 What must I do next? Below is my rt-specific code in my httpd.conf file.
Do
 I need to change something in my RT_SiteConfig.pm file???:
 
 Alias /rt /usr/local/share/rt38/html
 
 Directory /usr/local/share/rt38/html
 Options Indexes FollowSymLinks
 AllowOverride AuthConfig
 Order deny,allow
 /Directory
 
 PerlRequire /usr/local/bin/webmux.pl
 
 Thanks,

Heh.  I already answered that earlier in the thread.  Here:

http://www.gossamer-threads.com/lists/rt/users/91011#91011

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

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


Re: [rt-users] Parent/child ticket scenario

2010-01-18 Thread Robert Keidel
Hello,

thanks for that tip. Thats exactly what I was looking for. I do have now a
follow up question. I was not able to find a hint either in the wiki nor
here in the list. Is there a way to create a scrip that informs when all the
depends on are solved?

Thanks
Robert

On Sun, Jan 17, 2010 at 8:34 AM, Robert Keidel rkei...@gmail.com wrote:

 Thank you for that. I will take a look at that and if I have further
 question I will post it.

 Robert


 On Fri, Jan 15, 2010 at 10:45 PM, Jerrad Pierce 
 jpie...@cambridgeenergyalliance.org wrote:

  I have a request here in my company and I am not sure if that possible
 at
  all. Is there a way to block the resolved status in a parent ticket as
  long the child tickets are not resolved?
 You want DependsOn/DependedOnBy, not the softer Parent/Child.



___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

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

Re: [rt-users] Error No recipients found. Not sending.

2010-01-18 Thread John Fitzpatrick
Hi There,

I found the problem.

It turns out that in order to use exim4 to send email, you should 
configure it first. :)

If you automagically install RT using aptitude, you may not get prompted 
to configure exim4 and the default is not to allow sending email to 
remote addresses.

dpkg-reconfigure exim4 will do it for you.

Hope this helps someone else out there!

Cheers,

John.

John Fitzpatrick wrote:
 Hi There,
 
 Hopefully someone can help me figure this out. I am in the process of
 migrating RT from an old server to a new server. So far I have been able
 to get everything configured properly, however I cannot get RT to send
 emails on the new server.
 
 In our existing setup, when an email is sent to our support email
 address, a new ticket is created and the watchers get notified via email.
 
 In my staging setup, when the email gets sent, a new ticket is created
 and it seems that an attempt is made to send the emails but it fails.
 
 Here is the log output:
 
 Jan 15 17:21:56 ps003 RT: Converting 'ISO-8859-1' to 'utf-8' for
 text/plain - 7th try.
 Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
 #13146
 Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
 #13147
 Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
 #13148
 Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
 #13149
 Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
 #13150
 Jan 15 17:21:57 ps003 RT: About to prepare scrips for transaction #13150
 Jan 15 17:21:57 ps003 RT: Found 3 scrips
 Jan 15 17:21:57 ps003 RT: About to commit scrips for transaction #13150
 Jan 15 17:21:57 ps003 RT: rt-3.6.5-20864-1263604917-27.1007-...@[server
 PROTECTED] #1007/13150 - Scrip 4
 (/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:252)
 Jan 15 17:21:57 ps003 RT: rt-3.6.5-20864-1263604917-27.1007-...@[server
 PROTECTED] sent  To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL
 PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL
 PROTECTED] (/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:283)
 Jan 15 17:21:57 ps003 RT: About to think about scrips for transaction
 #13151
 Jan 15 17:21:57 ps003 RT:
 rt-3.6.5-20864-1263604917-459.1007-2...@[server PROTECTED] #1007/13150
 - Scrip 24  (/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:252)
 Jan 15 17:21:57 ps003 RT:
 rt-3.6.5-20864-1263604917-459.1007-2...@[server PROTECTED] No
 recipients found. Not sending.
 (/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:264)
 Jan 15 17:21:57 ps003 RT: Ticket 1007 created in queue 'General' by
 jfitzpatrick (/usr/share/request-tracker3.6/lib/RT/Ticket_Overlay.pm:756)
 Jan 15 17:21:57 ps003 qmail: 1263604917.436679 delivery 24: success:
 Connecting_to_http://[SERVER
 PROTECTED]:8081//REST/1.0/NoAuth/mail-gateway_at_/usr/bin/rt-mailgate_line_102,__line_1./okTicket:_1007Queue:_GeneralOwner:_NobodyStatus:_newSubject:_7th_try.Requestor:_jfitzpatr...@mindsinc.ca_at_/usr/bin/rt-mailgate_line_111,__line_1./did_0+0+1/
 
 I have installed RT under Ubuntu.
 
 Server side I have manually installed qmail version 1.03 and setup a
 .qmail-support file which invokes rt-mailgate as follows:
 
 |rt-mailgate --queue general --action correspond --url http://[SERVER
 PROTECTED]:8081/ --debug
 
 qmail is installed on the same machine as RT.
 
 Here are some more details:
 
 Ubuntu Server 8.04 Hardy lenny/sid
 uname -r
   2.6.24-23-server
 /usr/sbin/apache2 -v
   Server version: Apache/2.2.8 (Ubuntu)
   Server built:   Aug 18 2009 14:17:46
 
 libapache2-mod-fastcgi2.4.6-0ubuntu1
 libcgi-fast-perl  5.8.8-12ubuntu0.4
 libfcgi-perl  0.67-2
 request-tracker3.63.6.5-1
 rt3.6-apache2 3.6.5-1
 
 Relevant section of RT_SiteConfig.pm
 
 Set($SenderMustExistInExternalDatabase , undef);
 Set($CorrespondAddress , '[EMAIL PROTECTED]');
 Set($CommentAddress , '[EMAIL PROTECTED]');
 
 Set($MailCommand , 'sendmailpipe');
 Set($SendmailArguments , -oi -t);
 Set($SendmailPath , /usr/sbin/sendmail);
 Set($UseFriendlyFromLine , 1);
 Set($FriendlyFromLineFormat , \%s\ %s);
 Set($UseFriendlyToLine , 0);
 Set($FriendlyToLineFormat, \%s of $RT::rtname Ticket #%s\:;);
 Set($NotifyActor, 0);
 
 Thanks,
 


-- 
John Fitzpatrick
Minds Inc.
Landmark II Centre
Suite 105 - 1708 Dolphin Ave.
Kelowna, BC, Canada V1Y 9S4

office +1.250.862.8813 ext 228
fax +1.250.862.8814
web  www.mindsinc.ca
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from