General discussion on installation and configuration of SOGo

Text archives Help


Re: [SOGo] Modifying ACL's via sogo-tool


Chronological Thread 
  • From: Christian Mack < >
  • To:
  • Cc: "Ronald J. Yacketta" < >
  • Subject: Re: [SOGo] Modifying ACL's via sogo-tool
  • Date: Wed, 09 May 2012 11:25:51 +0200

On 2012-05-08 18:04, Ronald J. Yacketta wrote:
> On 5/4/2012 10:00 AM, Ronald J. Yacketta wrote:
>> Hello all!
>>
>> Is it possible to modify ACL's via sogo-tool? As it stands, we have to
>> access the WebUI and modify a Resources ACL in order to set
>>
>> Public : View All
>> Confidential : View the Date & Time
>> Private : None.
>>
>> We would like to automate the process of adding Resources to SOGo,
>> currently we have the LDAP automation portion working and just need to
>> figure out the SOGo side.
>>
>> Regards,
>>
>> Ron
> I take it that this is not possible?
>

Not directly.

You can take a backup of the account/ressource with sogo-tool.
Then change the ACL's in there, and restore it again with sogo-tool.

sogo@sogo $ /usr/sbin/sogo-tool backup /tmp/bkupdir ressourceID

Then edit /tmp/bakupdir/ressourceID with your text editor of choice, in
this section:
---< ... >-----
tables = {
"/Users/ressourceID/Calendar/personal" = {
acl = {
"<default>" = (
PublicViewer,
ConfidentialDAndTViewer,
PrivateDAndTViewer
);
userID1 = (
PublicModify,
ConfidentialModify,
PrivateModify,
ObjectCreator,
ObjectEraser
);
};
displayname = "personal calendar";
---< cut >-----

Finally restore it.

sogo@sogo $ /usr/sbin/sogo-tool restore -f Calendar/personal
/tmp/bkupdir ressourceID

But be aware, that changes made to the personal calendar between backup
and restore will be lost.


Kind regards,
Christian Mack

--
Christian Mack
Gruppe Informationsdienste
Rechenzentrum Universität Konstanz



Archive powered by MHonArc 2.6.18.

Top of page