Results 1 to 4 of 4

Thread: Upgrade from 5.0.18 to 6.0.6.1 broke my custom authentication

  1. #1
    Join Date
    May 2010
    Posts
    4
    Rep Power
    5

    Unhappy Upgrade from 5.0.18 to 6.0.6.1 broke my custom authentication

    Fortunately this is in a test environment . . . am I happy I have a test environment

    We have a custom authentication installed in lib/ext/

    I was happy to see that it had not disappeared during the upgrade, but it doesn't work any more. It calls com.zimbra.cs.account.Account.getAliases() to get a String[] containing the account aliases. That method does not exist any more.

    I really do need to obtain the list of e-mails, either the aliases or all the addresses coming into the account, but definitely excluding Child Mailboxes. I use a regexp to extract one that is in a specific hard-coded domain, and I use that for the authentication.

    I don't quite see what I should use as a replacement. getAllIdentities looked promising, but I couldn't easily see how to extract the list of e-mail adresses, let alone how to be certain I don't get Child Mailboxes along. I'd probably have to spend more hours poring through the code, while I hope an experienced Zimbra developer might be able to type in a reply from memory!

    Thank you for any help.
    Last edited by Loco; 05-19-2010 at 08:58 AM. Reason: added text

  2. #2
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    5

    Default

    Try ZAttrAccount.getMailAlias().

  3. #3
    Join Date
    May 2010
    Posts
    4
    Rep Power
    5

    Smile

    Quote Originally Posted by vmahajan View Post
    Try ZAttrAccount.getMailAlias().
    I'd try but I have an Account and I haven't tried getting a ZAttrAccount from that. My v5 code is

    public void authenticate(Account acct, String password,
    Map<String, Object> context, List<String> args) throws Exception {
    String[] aliases = acct.getAliases();

    Another Zimbra employee suggested

    String[] aliases = acct.getMultiAttr(Provisioning.A_zimbraMailAlias);

    so since that's a drop-in I'll try that first. Thank you both, I'll tell you how it works out.

  4. #4
    Join Date
    May 2010
    Posts
    4
    Rep Power
    5

    Default

    Quote Originally Posted by Loco View Post
    String[] aliases = acct.getMultiAttr(Provisioning.A_zimbraMailAlias);
    I'll try that first. Thank you both, I'll tell you how it works out.
    Of course (since I didn't follow up) it worked perfectly

Similar Threads

  1. upgrade broke server :Unable to connect to the MTA
    By esb123 in forum Administrators
    Replies: 14
    Last Post: 05-02-2012, 12:20 PM
  2. Zimbra 5.0.18 Upgrade to 6.0.4 - Some Issues
    By LMStone in forum Administrators
    Replies: 25
    Last Post: 07-30-2010, 09:00 AM
  3. upgrade from zimbra NE 5.0.18 to 6.0.4
    By ahmed.salah in forum Administrators
    Replies: 1
    Last Post: 03-30-2010, 10:51 AM
  4. Replies: 1
    Last Post: 03-18-2010, 11:27 AM
  5. Replies: 0
    Last Post: 09-09-2009, 05:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •