Access Control Lists (ACL)

Moderator: crythias

Post Reply
lomach
Znuny newbie
Posts: 12
Joined: 03 Aug 2010, 17:40
Znuny Version: 2.4.7

Access Control Lists (ACL)

Post by lomach »

I use OTRS 2.4.7 on CentOS 5.5 with MySQL 5.0.77, Apache2.

I am going to use ACL but it doesn't work at all.
I put my ACL rules into the Config.pm before the following line:
# ---------------------------------------------------- #
# needed system stuff (don't edit this) #
# ---------------------------------------------------- #
I use the rules described in FAQ and Manual just to try it.
No root@localhost user. I tried even with the users not in admin group.
I restarted otrs service several times.
No effect. OTRS ignores any ACL.
What wrong?
OTRS 2.4.7 on CentOS 5.5 with MySQL 5.0.77, Apache2
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Access Control Lists (ACL)

Post by jojo »

please post the Config.pm including the ACL
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
lomach
Znuny newbie
Posts: 12
Joined: 03 Aug 2010, 17:40
Znuny Version: 2.4.7

Re: Access Control Lists (ACL)

Post by lomach »

Thank you for your assistance.
The problem was that I didn't include my ACL rule into Load function.

Now I am facing the following problem: I want to restrict certain ticket type closing for all groups accept admin group.
I have started with:

Code: Select all

# ticket acl
$Self->{TicketAcl}->{'ACL-Name-1'} = {
 # match properties
 Properties => {
 # current ticket match properties
 Ticket => {
  Type => ['Новый клиент'],
 }
 },


 # return possible options (white list)
 Possible => {

 # possible ticket options (white list)
 Ticket => {
  State => ['new', 'open', 'pending reminder'],
 },


 # possible action options
 Action => {
  AgentTicketLock => 1,
  AgentTicketZoom => 1,
  AgentTicketClose => 0,
  AgentTicketPending => 1,
  AgentTicketNote => 1,
  AgentTicketHistory => 1,
  AgentTicketPriority => 1,
  AgentTicketFreeText => 1,
  AgentTicketHistory => 1,
  AgentTicketCompose => 1,
  AgentTicketBounce => 1,
  AgentTicketPrint => 1,
  AgentTicketForward => 1,
  AgentTicketPrint => 1,
  AgentTicketPhone => 1,
  AgentTicketPhoneOutbound => 1,
  AgentTicketCustomer => 1,
  AgentTicketMove => 1,
  AgentTicketOwner => 1,
  AgentTicketResponsible => 1,
  AgentTicketWatcher => 1,
  AgentLinkObject => 1,
 },
 },
 };

Encoding UTF-8 is used. The language is russian.
Type => ['Новый клиент'] is ignored.
OTRS 2.4.7 on CentOS 5.5 with MySQL 5.0.77, Apache2
lomach
Znuny newbie
Posts: 12
Joined: 03 Aug 2010, 17:40
Znuny Version: 2.4.7

Re: Access Control Lists (ACL)

Post by lomach »

Any hints?
OTRS 2.4.7 on CentOS 5.5 with MySQL 5.0.77, Apache2
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Access Control Lists (ACL)

Post by ferrosti »

Just a try in case it got problems with this charset:
What if you insert the state id instead of its name? In some cases OTRS accepts ids as well as these names, though it is not well documented.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
lomach
Znuny newbie
Posts: 12
Joined: 03 Aug 2010, 17:40
Znuny Version: 2.4.7

Re: Access Control Lists (ACL)

Post by lomach »

Thank you. I'll try.
ferrosti wrote:Just a try in case it got problems with this charset:
What if you insert the state id instead of its name? In some cases OTRS accepts ids as well as these names, though it is not well documented.
OTRS 2.4.7 on CentOS 5.5 with MySQL 5.0.77, Apache2
Post Reply