Problem with kolab sam !

Nathanael D. Noblet nathanael at gnat.ca
Thu Jul 10 17:41:58 CEST 2014


On Wed, 2014-07-09 at 15:00 +0200, Franz Skale wrote:
> Hi,
> i'm just trying to set permissions via kolab sam.
> So, i tried it with kolab sam "Mailbox" "user" ACL.
> kolab sam only throws an exception, but cyradm works.
> Bug ?
> 
> See:
> 
> kolab sam "user/Globales Adressbuch at example.com"
> user/hans.test at example.com lrswipcda
> 

I have no idea why you have a space in the Globales user... I have a
shared folder like

shared/someone at fqdn

and did 

kolab sam shared/somone at fqdn user/some at fdqn perms...

and that works fine.


> Traceback (most recent call last):
>   File "/usr/sbin/kolab", line 39, in <module>
>     kolab = Cli()
>   File "/usr/lib/python2.7/dist-packages/pykolab/cli/__init__.py", line
> 64, in __init__
>     commands.execute('_'.join(to_execute))
>   File "/usr/lib/python2.7/dist-packages/pykolab/cli/commands.py", line
> 139, in execute
>     commands[cmd_name]['function'](conf.cli_args, kw)
>   File
> "/usr/lib/python2.7/dist-packages/pykolab/cli/cmd_set_mailbox_acl.py",
> line 72, in execute
>     imap.set_acl(folder, identifier, acl)
>   File "/usr/lib/python2.7/dist-packages/pykolab/imap/__init__.py", line
> 361, in set_acl
>     self.imap.sam(self.folder_utf7(folder), identifier, acl)
>   File "/usr/lib/python2.7/dist-packages/cyruslib.py", line 585, in sam
>     res, msg = self.__docommand("setacl", self.decode(mailbox), userid,
> rights)
>   File "/usr/lib/python2.7/dist-packages/cyruslib.py", line 391, in
> __docommand
>     self.__doexception(function, msg[0], *args)
>   File "/usr/lib/python2.7/dist-packages/cyruslib.py", line 359, in
> __doexception
>     self.__doraise( function.upper(), msg )
>   File "/usr/lib/python2.7/dist-packages/cyruslib.py", line 368, in
> __doraise
>     raise CYRUSError( idError[0], mode, msg )
> cyruslib.CYRUSError: (99, 'SETACL', 'Invalid identifier')
> 
> 
> BUT:
> cyradm  --user cyrus-admin --authz cyrus-admin localhost
> sam "shared/Globales Adressbuch at example.com" "hans.test at example.com"
> lrswipcda
> lam "shared/Globales Adressbuch at example.com"
> hans.test at example.com lrswipkxtecda
> 
> works.
> 
> Did i missed something ?
> 
> Rgds.
> 
> Franz
>  
> 
> _______________________________________________
> users mailing list
> users at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users





More information about the users mailing list