anthentication problem with Cyrus::IMAP::Admin;

(no email)
Date: Sun Jul 16 2006 - 10:39:07 EDT

  • Next message: Alexander Dalloz: "Re: [OT] Support for Cyrus IMAPD"

    Hi,

     

    I am having an authentication problem with Cyrus::IMAP::Admin;

     

    I could not create a mailbox and did not understand the problem until today.
    The problem is that I can only create and delete mailboxes at domain.com
    (for example).

     

    I am authenticating with user cyrus and not .

     

    Here:

    $rc = $cyrus->authenticate(-mechanism => 'login', -user => $imapuser,
    -password => $pass);

    $imapuser is 'cyrus'

     

    I can see in maillog that I am being authenticated as .

     

    With cyradm when I authenticate with cyrus, I can manage all domains, and,
    of course, when I authenticate with , I can only manage the
    domain.com space.

     

    What is interesting, is that when I set ACL to 'all' for a mailbox, if does
    get set as user cyrus, but I can't delete the mailbox without setting the
    ACL as and then I can delete it.

     

    Here, if $imapuser is 'cyrus', I can set the ACL, and I can view it with
    cyradm, but I can't delete the mailbox.

    $acl{$imapuser} = "all";

    $cyrus->setacl($mbox, %acl);

    $cyrus->deletemailbox($mbox);

     

    but if I change $imapuser to include the domain

    $acl{$imapuser . "\@domain.com"} = "all";

    I can delete the account.

     

    There is probably a much easier way to see who I am as user.

     

    This scripted worked fine with our older version of cyrus with the exception
    of changing from "user." to "user/"

     

    Thanks, Jerry


    ----
    Cyrus Home Page: http://asg.web.cmu.edu/cyrus
    Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
    List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
    

  • Next message: Alexander Dalloz: "Re: [OT] Support for Cyrus IMAPD"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD