Include ACL on Config.pm

Moderator: crythias

Post Reply
eterjack
Znuny newbie
Posts: 55
Joined: 21 Sep 2012, 01:45
Znuny Version: 3.1.10

Include ACL on Config.pm

Post by eterjack »

Anyone know if it is possible to include within the Config.pm ACL?

I'm generating ACLs, and would like to organize files and perform in an include these files in Config.pm

Thx..
yuri0001
Znuny superhero
Posts: 631
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Include ACL on Config.pm

Post by yuri0001 »

You may include it only in Config.pm if you need it works. 8) See manual - chapter 18
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Include ACL on Config.pm

Post by jojo »

all files in Kernel/Config/Files are includes outomatically.

So you can add a file ACL.pm containing your ALCs.

The file needs to end with the line

Code: Select all

1;
"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
eterjack
Znuny newbie
Posts: 55
Joined: 21 Sep 2012, 01:45
Znuny Version: 3.1.10

Re: Include ACL on Config.pm

Post by eterjack »

That was exactly what I needed. Thank you.

Is there a limit to the amount of ACL? I'm automating my ACLs, and I already have a file with over 10,000 rows rsrsrsrs

Believes it can make heavy?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Include ACL on Config.pm

Post by jojo »

no, there is no limit. Just difficult to read and might slow down some actions in OTRS
"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
muellotrs
Znuny newbie
Posts: 7
Joined: 18 Oct 2017, 11:50
Znuny Version: 5.0.0.0.0

Re: Include ACL on Config.pm

Post by muellotrs »

Hello,
it's not working for me. Writing acl settings into config.pm or a sperate .pm file and performing Maint::Config::Rebuild has no effect, i dont see acl in web gui. I tried Otrs 5.026 and 6.04. What am I doing wrong?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Include ACL on Config.pm

Post by jojo »

You have to create the ACL in the webinterface (and please don't hijack old threads as this one is more than 5 years old and for another OTRS version)
"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
muellotrs
Znuny newbie
Posts: 7
Joined: 18 Oct 2017, 11:50
Znuny Version: 5.0.0.0.0

Re: Include ACL on Config.pm

Post by muellotrs »

Sorry for using this old thread but the subject fits!

In every documentation there is this part:
ACLs can be directly entered into the Kernel/Config.pm file. However this is not any more recommended as OTRS comes now with a GUI Access Control Lists in the Admin panel that allows to save the ACLs in the Database as the first step and then deploy them into a file when they are ready.
see: http://doc.otrs.com/doc/manual/admin/st ... n.html#acl

If it's not possible that should be changed.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Include ACL on Config.pm

Post by jojo »

it is still possible but they will not show up in the Web GUI. So the documentation is valid. Also if you want to suggest a change on the documentation please create a pull request here https://github.com/OTRS/doc-admin
"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
Post Reply