Re: [rt-users] Change Ticket Creation form for only one queue

2012-03-24 Thread Ruslan Zakirov
What you really want is Init callback in /Ticket/Create.html. In that
callback you check queue and redirect if required.

Ruslan from phone.
23.03.2012 19:33 пользователь "Renney, Paul" 
написал:

> Thanks for the reply. I now have a custom CreateAlt.html form I want RT to
> use instead of Create.html for one particular queue.
>
> I can see code in share/html/Elements/CreateTicket which selects the form
> to use when 'New Ticket in' queue is triggered.
>
> I have copied CreateTicket into local/html/Elements. I think this will
> make it be used rather than the original version in share. I assume I need
> a check in here to look at the ID of the queue and change the Create form
> to be used. If this is possible what would this code look like? I have made
> it (for now) try and use CreateAlt.html. I have my CreateAlt.html in
> local/html/Ticket.
>
> Does this seem right so far? I've restarted my webserver (clearing my
> Mason cache as well) and my changes don't appear to have any effect. The
> original Create.html is always used.
>
> Is this the easiest way to do this? Would using a callback be easier? I
> couldn't find the callback I need to use to change the Create.html being
> used.
>
> I spoke to my collegues about a standalone form using the REST interface
> but this suggestion has been rejected.
>
> Thanks,
> Paul
>
>
> 
> From: rt-users-boun...@lists.bestpractical.com [
> rt-users-boun...@lists.bestpractical.com] on behalf of Kevin Falcone [
> falc...@bestpractical.com]
> Sent: 13 March 2012 15:29
> To: rt-users@lists.bestpractical.com
> Subject: Re: [rt-users] Change Ticket Creation form for only one queue
>
> On Tue, Mar 13, 2012 at 10:31:34AM +, Renney, Paul wrote:
> >I've been asked if it's possible to change the 'look and feel' of the
> Create Ticket and Modify
> >Ticket forms for one particular queue. Care must be taken not to
> change any of the forms for
> >other queues, and only these forms must be changed.
> >
> >
> >
> >As well as the colour and font on the forms, there needs to be some
> bespoke Javascript
> >to guide the user input into certain fields, bespoke placements of
> fields into different
> >sections which become active at certain points and others.
> >
> >
> >
> >Is is possible in RT to have a bespoke ticket form for one queue? I
> think I can make these
> >changes for all queues by changing Create.html, and I've looked into
> doing it with a custom
> >theme.
> >
> >
> >
> >I am equally happy with a 'this isn't possible in RT', or a 'this is
> possible, here's
> >a suggestion how to do it' answer. We are using RT version 4.0.5.
>
> You can do it by clobbering Create.html and adding Queue checks, but
> that'll be an upgrade nightmare.
>
> I'd probably build my own custom form for those queues that submits
> tickets into RT, and keeps all the display logic separate.
>
> -kevin
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you.
>
>
>


Re: [rt-users] data file syntax for rt-setup-database ?

2012-03-24 Thread Ruslan Zakirov
It's only possible with code in @Final.

Ruslan from phone.
23.03.2012 20:06 пользователь "Gabriel L. Somlo"  написал:

> I'm trying to "script" (or fully specify) a workflow using an
> 'initialdata'-like file that will be loaded into RT via
> 'rt-setup-database --action insert'.
>
> Looks something like this:
>
>@Queues = (
>{ Name=> 'MyQueue',
>  Description => 'Queue for my special workflow',
>},
>);
>
>@Groups = (
>{ Name=> 'MyQueueAdmins',
>  Description => 'Admins for my special queue',
>  Domain  => 'UserDefined',
>},
>{ Name=> 'MyQueueWorkers',
>  Description => 'Workers who will solve tickets from my queue',
>  Domain  => 'UserDefined',
>},
>);
>
>@ACL = (
>{ GroupDomain => 'SystemInternal',
>  Queue   => 'MyQueue',
>  GroupType   => 'Everyone',
>  Right   => 'CreateTicket',
>},
>
>...
>
>{ GroupDomain => 'UserDefined',
> Queue   => 'MyQueue',
>  GroupId => 'MyQueueAdmins',
>  Right   => 'CommentOnTicket',
>},
>
>...
>);
>
> Is there any way to specify that the MyQueueAdmins group should be
> an AdminCc watcher for MyQueue ? I.e., can I automate the following
> list of steps:
>
>Configuration -> Queues -> MyQueue -> Watchers ->
>
>
>
>
>
> Also, can I specify existing privileged user names I'd like to be
> members of any of my groups using this method ?
>
> Thanks,
> --Gabriel
>


[rt-users] RT External Authen/LDAP import with AD user names as numeric

2012-03-24 Thread Murugan
Hi,
I am new to RT and installed  RT4.05  in Ubuntu 11.10 with RT External
authentication.Active Directory users whose  login ID is numeric(say
0001234 which will be their employee id ) cannot log in in RT(user names
not created in RT).
All others whose AD Login ID  are alphabet/alphanumeric(like b001) can log
in (user name created in RT).
I tried LDAP import also and it fails  fails with messages like
 [warning]: Skipping user '0003503', as it is numeric
(/opt/rt4/local/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:969)


Is there any way to authenticate or import users from LDAP without changing
AD user names?

This is my RT External Auth Config file


Set($ExternalAuthPriority,   [ 'My_LDAP' ] );
   Set($ExternalInfoPriority,   [ 'My_LDAP' ] );
   Set($ExternalServiceUsesSSLorTLS,0);
   Set($AutoCreateNonExternalUsers, 0);

   Set($ExternalSettings,  {
'My_LDAP'   =>  {

'type'  =>  'ldap',
'server'=>  'serverr.domain.com',
'user'  =>
 'cn=RT,ou=ouname,dc=example,dc=com',
'pass'  =>  'Welcome123',
'base'  =>  'dc=example,dc=com',

'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=RT
Users,dc=sps,dc=co,dc=in',
   # 'group_attr'=>  'member',

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

In RT_Site Config.PM

Set(@Plugins, qw(RT::Authen::ExternalAuth
RTx::Calendar
RT::Extension::JSGantt
RT::Extension::QuickCalls
RT::Extension::SLA
RTx::TicketlistTransactions
RT::Extension::Utils
RTx::WorkflowBuilder
RT::Extension::NotifyOwners));

require
"/opt/rt4/local/plugins/RT-Authen-ExternalAuth/etc/RT_SiteConfig.pm";
Set($AutoCreate,{Privileged => 1});



Am i missing something ?

Regards
Murugan