Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-27-2008, 08:30 AM
Junior Member
 
Posts: 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?
Reply With Quote
  #2 (permalink)  
Old 12-19-2008, 07:32 AM
Junior Member
 
Posts: 7
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.