Results 1 to 2 of 2

Thread: [SOLVED] How to modify user defined ldap attributes in jsp?

  1. #1
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    7
    Rep Power
    7

    Default [SOLVED] How to modify user defined ldap attributes in jsp?

    I'm wondering what the best way is to access user defined attributes on accounts from jsp pages.

    I see two possibilities:

    Code:
    (1) Via soap admin call:
            spAdmin = new SoapProvisioning();
            spAdmin.soapSetURI("https://"+mServer+":"+mPort+ZimbraServlet.ADMIN_SERVICE_URI);
            spAdmin.soapZimbraAdminAuthenticate();
            zimbraAccount = sp.getAccount(accountId, true);
            sp.modifyAttrs(zimbraAccount, mAttrs);
    
    (2) Via direct library call:
            prov = Provisioning.getInstance();
            account = prov.get(AccountBy.fromString("id"), accountId);
            prov.modifyAttrs(account, mAttrs, true);
    Which way is the way to go? Does it matter? Does it make a difference whether it is a single server install or a multiple server install?

  2. #2
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    7
    Rep Power
    7

    Default

    The direct library call (2) is also a direct call to the ldap. So, normaly the soap call is preferred.

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 10:38 AM
  4. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 06:38 PM

Posting Permissions

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