Re: [rt-users] RT4/ExternalAuth/AD issues:

2013-05-16 Thread Shain Singh
Hi,

Try the following:



> # The username RT should use to connect to the LDAP server
>
> 'user'  =>  'ad-rt-user',

set this to be the LDAP DN, i.e. 'cn=ad-rt-user',ou=OrgUnit,dc=domain,dc-local'



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

I've used the (objectClass=user) as my filter.


>
> # The filter that will only match disabled users
>
> 'd_filter'  =>
> '(&(sAMAccountType=805306368)(userAccountControl:1.2.840.113556.1.4.803:=2))',
>


I've used (objectClass=ThisWillNeverMatch)


>
> 'group' =>  'RTusers',
>

cn=RTusers,ou=OrgUnit,dc=domain,dc=local





--
Shaineel Singh
e: shain.si...@gmail.com
p: +61 422 921 951
w: http://buffet.shainsingh.com

--
"Too many have dispensed with generosity to practice charity" - Albert Camus


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] shredder on specific user

2013-05-16 Thread Thomas Sibley
On 05/16/2013 05:14 PM, Philip Brown wrote:
> After doing a few searches, it seems that using the "rt-shredder" tool
> is the one true way to delete a user.
> 
> Unfortunately... i find the documentation on it, inscruitable :(
> 
> Could someone please give me a simple, straightforward commandline to
> delete user X?
> 
> I was hoping it would be as simple as
> 
> 
> rt-shredder --plugin User name=doomeduser
> 
> but that does not seem to be adequate.

The format is incorrect.  --plugin takes a single argument, but you've
space separated it and hence it's two.  See
http://bestpractical.com/rt/docs/latest/rt-shredder.html for the proper
format; you're close.

Alternatively, use the admin web interface instead of the command line.
 Select "Users" from the object type and then enter "doomeduser" in the
Name field.  If the user isn't disabled, either disable them first or
enter "enabled" in the status field (which defaults to "disabled" if
empty, for safety).



-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


[rt-users] shredder on specific user

2013-05-16 Thread Philip Brown
After doing a few searches, it seems that using the "rt-shredder" tool 
is the one true way to delete a user.


Unfortunately... i find the documentation on it, inscruitable :(

Could someone please give me a simple, straightforward commandline to 
delete user X?


I was hoping it would be as simple as


rt-shredder --plugin User name=doomeduser


but that does not seem to be adequate.





--
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] Post upgrade 3.8.5 to 4.0.12 Global->RT At A Glance error

2013-05-16 Thread Pete Beebe
Hi Thomas,

The guilt of leaving you with a rt-validator log file full of warnings didn't 
sit well with me.  I went ahead and re-added the removed user records.  Once 
done the rt-validator --check output was empty.

~Pete_Jibe

Disclaimer: This electronic message may contain information that is 
Confidential or legally privileged. It is intended only for the use of the 
individual(s) and entity named in the message. If you are not an intended 
recipient of this message, please notify the sender immediately and delete the 
material from your computer. Do not deliver, distribute or copy this message 
and do not disclose its contents or take any action in reliance on the 
information it contains.


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] Notify Actor

2013-05-16 Thread Thomas Sibley
On 05/16/2013 01:07 AM, Andrea gabellini - SC wrote:
> Thomas,
> 
> I have 10 queues and only in one of them I need to notify the actor.
> What about a config like this?
> 
> Set(NotifyActor, {
>  'default' => '0',
>  'queue-name' => '1',
> });

I understand the concept.  What I'm asking is for an explanation why you
want it for only 1 queue but not all the others.



-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] QueueDeactivatedScrips

2013-05-16 Thread Thomas Sibley
On 05/16/2013 01:08 AM, Andrea gabellini - SC wrote:
> Thomas,
> 
> thank you. I will wait for the 4.2. What is the time line?

It's our policy not to speculate on release dates.  You can follow
development on rt-devel mailing list which receives announcements of
alpha 4.1 releases and then 4.2 "release candidates" for testing.  Note
that in general, alpha releases like 4.1.x releases shouldn't be used
for production services.


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] RT at a Glance error after upgrade from 4.011 to 4.0.12

2013-05-16 Thread Kevin Comer

In my first post I placed the errors, but here they are again. The
entire log file is too large to load here

This error is from the Global menu RT at a Glance
[Thu May 16 17:32:48 2013] [error]: Can't call method "Content" on an
undefined value at /opt/rt4/share/html/Admin/Global/MyRT.html line 69.

Stack:
  [/opt/rt4/share/html/Admin/Global/MyRT.html:69]
  [/opt/rt4/share/html/Admin/autohandler:49]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:634]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:335]
  [/opt/rt4/share/html/autohandler:53]
(/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)


This error is from the users page RT at a Glance

Stack:
  [/opt/rt4/share/html/Admin/Users/MyRT.html:96]
  [/opt/rt4/share/html/Admin/autohandler:49]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:634]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:335]
  [/opt/rt4/share/html/autohandler:53]
(/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)


Kevin Comer
Linux Admin
Veracitypayment Solutions
404-492-6591

On 05/16/2013 01:29 PM, Jok Thuau wrote:

On 5/16/13 10:22 AM, "Kevin"  wrote:


Both of the errors I am seeing are only occurring under the ROOT login

Tools > Configuration > Users ( Select a user and from their page hit RT
at
a Glance )

Tools > Configuration > Global > RT at a Glance menu.

I receive the error "An internal RT error has occurred. Your administrator
can find more details in RT's log files."
Error log messages in first post

Kevin, please provide the error log in question. This will greatly help in
debugging the problem.

Thanks,
Jok




The information transmitted in this email is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited.  If you received this email in 
error, please contact the sender and delete the email from your computer.


--
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] RT at a Glance error after upgrade from 4.011 to 4.0.12

2013-05-16 Thread Kevin
Both of the errors I am seeing are only occurring under the ROOT login

Tools > Configuration > Users ( Select a user and from their page hit RT at
a Glance )

Tools > Configuration > Global > RT at a Glance menu. 

I receive the error "An internal RT error has occurred. Your administrator
can find more details in RT's log files." 
Error log messages in first post

All other links are working under ROOT or a USER ID

One more note The RT at A Glance is working from Settings > RT at a Glance



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/RT-at-a-Glance-error-after-upgrade-from-4-011-to-4-0-12-tp53829p53887.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] RT at a Glance error after upgrade from 4.011 to 4.0.12

2013-05-16 Thread Jok Thuau

On 5/16/13 10:22 AM, "Kevin"  wrote:

>Both of the errors I am seeing are only occurring under the ROOT login
>
>Tools > Configuration > Users ( Select a user and from their page hit RT
>at
>a Glance )
>
>Tools > Configuration > Global > RT at a Glance menu.
>
>I receive the error "An internal RT error has occurred. Your administrator
>can find more details in RT's log files."
>Error log messages in first post

Kevin, please provide the error log in question. This will greatly help in
debugging the problem.

Thanks,
Jok



-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


[rt-users] RT4/ExternalAuth/AD issues:

2013-05-16 Thread Duncan Carter
Hello,

I've been staring at this for hours now and I'm not getting anywhere.

CentOS 5.9, RT 4.0.10, RT-Authen-ExternalAuth 0.13

RT is installed and I can connect to it from a browser, can login as root, 
trying to login as a domain user and it's saying my password is wrong.

I've got logging enabled (best as I can find out how to...), but I can't see 
any LDAP messages, just failed logins.

RT_SiteConfig.pm:
# Any configuration directives you include  here will override
# RT's default configuration file, RT_Config.pm
#
# To include a directive here, just copy the equivalent statement
# from RT_Config.pm and change the value. We've included a single
# sample value below.
#
# This file is actually a perl module, so you can include valid
# perl code, as well.
#
# The converse is also true, if this file isn't valid perl, you're
# going to run into trouble. To check your SiteConfig file, use
# this comamnd:
#
#   perl -c /path/to/your/etc/RT_SiteConfig.pm
#
# You must restart your webserver after making changes to this file.


# You must install Plugins on your own, this is only an example
# of the correct syntax to use when activating them.
# There should only be one @Plugins declaration in your config file.
#Set(@Plugins,(qw(RT::Extension::QuickDelete RT::Extension::CommandByMail 
RT::Authen::ExternalAuth)));

Set($LogToFile, 'debug');
Set($LogDir, '/var/log/rt');

Set( $CommentAddress, 'rt-comm...@domain.com' );
Set( $CorrespondAddress, 'rt-corresp...@domain.com' );
Set( $DatabaseHost, 'localhost' );
Set( $DatabaseName, 'rt4' );
Set( $DatabasePassword, 'password' );
Set( $DatabasePort, '' );
Set( $DatabaseRequireSSL, '' );
Set( $DatabaseType, 'mysql' );
Set( $DatabaseUser, 'rt_user' );
Set( $Organization, 'domain.com' );
Set( $OwnerEmail, 'it-supp...@domain.com' );
Set( $SendmailPath, '/usr/sbin/sendmail' );
Set( $WebDomain, '10.x.x.x' );
Set( $WebPort, '80' );
Set( $rtname, 'domain.com' );


#ExtAuth:

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

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

Set($ExternalServiceUsesSSLorTLS,   0);

Set($AutoCreateNonExternalUsers,1);

Set($ExternalSettings,  { # AN EXAMPLE LDAP SERVICE
'My_LDAP' =>  {  ## GENERIC SECTION
# The type of service (db/ldap/cookie)
'type'  =>  'ldap',
# The server hosting the service
'server'=>  'ad01.domain.local',
## SERVICE-SPECIFIC SECTION
# If you can bind to your LDAP server anonymously you should
# remove the user and pass config lines, otherwise specify them 
here:
#
# The username RT should use to connect to the LDAP server
'user'  =>  'ad-rt-user',
# The password RT should use to connect to the LDAP server
'pass'=>  'password',
#
# The LDAP search base
'base'  =>  'ou=OrgUnit,dc=domain,dc=local',

#
# 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'=>  '(sAMAccountType=805306368)',
# A catch-all example filter: '(objectClass=*)'
#
# The filter that will only match disabled users
'd_filter'  =>  
'(&(sAMAccountType=805306368)(userAccountControl:1.2.840.113556.1.4.803:=2))',
# A catch-none example d_filter: '(objectClass=FooBarBaz)'
#
# Should we try to use TLS to encrypt connections?
'tls'   =>  0,
# SSL Version to provide to Net::SSLeay *if* using SSL
'ssl_version'   =>  3,
# What other args should I pass to Net::LDAP->new($host,@args)?
'net_ldap_args' => [version =>  3   ],
# Does authentication depend on group membership? What group 
name?
'group' =>  'RTusers',
# What is the scope of the group search? (base, one, sub)
# Optional; defaults to 'base', which is good enough for most 
cases. 'sub' is appropriate when you have nested groups
'group_scope'   =>  'base',
# What is the attribute for the group object that determines 
membership?
'group_attr'=>  'member',
# What is the attribute of the user entry that should be 
matched against group_attr above? (Optional; defaults to 'dn')
#'group_attr_value'  =>  'GROUP_ATTR_VALUE',
## RT ATTRIBUTE MATCHING SECTION
# The list of RT attributes

Re: [rt-users] Flaws on RT::Extension::RepeatTicket search

2013-05-16 Thread Thomas Lau
Dear Jim, 

I did and it did show up. But the problem is that field only appear when ticket 
already repeat at least one time, am I correct? For example, now I create a 
recurrent ticket same month and day in next year, after 3 months and I did a 
search, OriginalTicket should not create as it haven't been repeat, please 
clarify if something wrong in my concept. Thanks.

Thomas Lau
Senior Technology Analyst
Principle One Limited
27/F Kinwick Centre, 32 Hollywood Road, Central, Hong Kong
T  +852 3555 2217 F  +852 3555   M  +852 3555 2017
Hong Kong   .   Singapore   .   Tokyo 

-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Jim Brandt
Sent: Wednesday, May 15, 2013 7:46 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Flaws on RT::Extension::RepeatTicket search

On 5/14/13 10:26 PM, Thomas Lau wrote:
> Hi,
>
> I recently tested out the new RT::Extension::RepeatTicket module, it 
> works out great, but the search feature is basically non-existence.
>
> How could I search the original ticket which is GOING to repeat later 
> on? Current situation there is no way to do this, please advise.

Each ticket created in the recurrence should have a custom field called 
Original Ticket with the id of the ticket that controls the recurrence. 
Maybe you didn't run the 'make initdb' step when installing to create the 
custom field?



--
RT Training in Seattle, June 19-20: http://bestpractical.com/training


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] QueueDeactivatedScrips

2013-05-16 Thread Andrea gabellini - SC
Thomas,

thank you. I will wait for the 4.2. What is the time line?

Andrea

Il 16/05/2013 01:06, Thomas Sibley ha scritto:
> On 05/15/2013 08:02 AM, Andrea gabellini - SC wrote:
>> Hello,
>>
>> is there an updated version of RT-Extension-QueueDeactivatedScrips? I
>> found https://github.com/dmsimard/RT-Extension-QueueDeactivatedScrips
>> but is for rt 4.0.4.
> I do not believe so.  However, RT 4.2 will include equivalent
> functionality natively.
>
>
>

-- 

When looking for faults, use a mirror, not a telescope.


Ing. *Andrea Gabellini*
Email: andrea.gabell...@telecomitalia.sm

Skype: andreagabellini
Tel: (+378) 0549 886111
Fax: (+378) 0549 886188

Telecom Italia San Marino S.p.A.
Strada degli Angariari, 3
47891 Rovereta
Republic of San Marino

http://www.telecomitalia.sm


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training

Re: [rt-users] Notify Actor

2013-05-16 Thread Andrea gabellini - SC
Thomas,

I have 10 queues and only in one of them I need to notify the actor.
What about a config like this?

Set(NotifyActor, {
 'default' => '0',
 'queue-name' => '1',
});


Il 16/05/2013 01:08, Thomas Sibley ha scritto:
> On 05/15/2013 07:49 AM, Andrea gabellini - SC wrote:
>> Hello,
>>
>> is it possible to set NotifyActor per queue basis?
> No.  If you wanted to hack up some Perl, you could do it.  I don't
> recommend it.  What's your use case?
>
>
>

-- 

When looking for faults, use a mirror, not a telescope.


Ing. *Andrea Gabellini*
Email: andrea.gabell...@telecomitalia.sm

Skype: andreagabellini
Tel: (+378) 0549 886111
Fax: (+378) 0549 886188

Telecom Italia San Marino S.p.A.
Strada degli Angariari, 3
47891 Rovereta
Republic of San Marino

http://www.telecomitalia.sm


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training