Problem with kolab sam !

Franz Skale i.bin at dah.am
Wed Jul 9 15:00:42 CEST 2014


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

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
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4254 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.kolab.org/pipermail/users/attachments/20140709/cdaedec2/attachment.p7s>


More information about the users mailing list