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

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 07-30-2010, 01:28 PM
New Member
 
Posts: 3
Default [SOLVED] What does -e option to zmprov getAccount do?

Can someone point me to a reference that explains how the -e option works to the zmprov getAccount command.

Without the option, it appears that getAccount returns all the attributes for a user whether it is in their account OR derived from something else such as their COS.

With the -e option it looks like only the attributes from the person's account is shown.

I've been looking for verification of this, thanks.
Reply With Quote
  #2 (permalink)  
Old 07-31-2010, 04:48 AM
Moderator
 
Posts: 6,237
Default

Welcome to the forums,

That's correct (-e shows values set only on that individual account).

The code is implemented in //depot/main/ZimbraServer/src/java/com/zimbra/cs/account/ProvUtil.java:

Code:
 private void doGetAccount(String[] args) throws ServiceException {
        boolean applyDefault = true;
        int acctPos = 1;
        
        if (args[1].equals("-e")) {
            if (args.length > 1) {
                applyDefault = false;
                acctPos = 2;
            } else {
                usage();
                return;
            }
        } 
        
        dumpAccount(lookupAccount(args[acctPos], true, applyDefault), applyDefault, getArgNameSet(args, acctPos+1));
    }
(Where applyDefault above = the actual defaultCOS or their customCOS settings based on value of zimbraCOSid.)

Last edited by mmorse; 07-31-2010 at 05:00 AM..
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.