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 06-22-2011, 02:26 AM
New Member
 
Posts: 3
Default [SOLVED] display first name and last name

Hi,

I'm a newbie here. And I have to manage zimbra mail of one of my company's client. Right now, I've trying to find command on how to display the first name and last name of the user.

like command 'zmprove -l gaa', it will display 'user@domain'.

But in my situation, my client want it to display 'firstname lastname'. I'm using version,

Release 6.0.7_GA_2470.RHEL4_64_20100610200901 CentOS4_64 NETWORK edition.

I need help from anybody who can solve my problem. And your co-operation is highly appreciated.
Thank you in advance.
Reply With Quote
  #2 (permalink)  
Old 06-22-2011, 03:09 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

# su - zimbra
$ zmprov ga user@domain displayName

Its usually First name and Last name that make up the display name in zimbra. This command will give you that. To get all results of all accounts at once, run this script as zimbra user.
$ for i in `zmprov -l gaa`; do zmprov ga $i displayName; done

I hope this helps.
Reply With Quote
  #3 (permalink)  
Old 06-22-2011, 07:55 PM
New Member
 
Posts: 3
Default

thanks fyd for replying me.

i've try the 'zmprov ga $i displayName' cmd that you give but there is an error display.


ERROR: account.NO_SUCH_ACCOUNT (no such account: displayName)

Is there any file or cmd that i have to use or to create before i can view all the user account in just only name without domain?
Reply With Quote
  #4 (permalink)  
Old 06-23-2011, 12:00 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by ainazmi View Post
i've try the 'zmprov ga $i displayName' cmd that you give but there is an error display.
That wasn't the command you were given, read the post again or the zmprov help.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 06-23-2011, 12:03 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Quote:
Originally Posted by ainazmi View Post
thanks fyd for replying me.

i've try the 'zmprov ga $i displayName' cmd that you give but there is an error display.


ERROR: account.NO_SUCH_ACCOUNT (no such account: displayName)

Is there any file or cmd that i have to use or to create before i can view all the user account in just only name without domain?
Hey ainazmi,

This is the actual command we have to run as user zimbra to get the result --- zmprov ga user@domain.com displayName

Now we are going to get results for all accounts on your server. Use this command as zimbra user. Give this completely.
Quote:
for i in `zmprov -l gaa`; do zmprov ga $i displayName; done
Reply With Quote
  #6 (permalink)  
Old 06-23-2011, 01:38 AM
New Member
 
Posts: 3
Default

phoenix,
sorry, my mistake. I thought 'for' and 'do' is to complete the sentence.

fyd,
i'm so sorry for not using the whole cmd that you give. my misunderstood.

Thank you so much for helping to both of you.
Reply With Quote
  #7 (permalink)  
Old 06-23-2011, 07:17 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Quote:
Originally Posted by ainazmi View Post
fyd,
i'm so sorry for not using the whole cmd that you give. my misunderstood.

Thank you so much for helping to both of you.
Happy we could help you ainazmi, tc and good luck with your work.

Last edited by fyd; 06-23-2011 at 04:14 PM..
Reply With Quote
  #8 (permalink)  
Old 06-23-2011, 07:42 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Quote:
Originally Posted by ainazmi View Post
sorry, my mistake. I thought 'for' and 'do' is to complete the sentence.
By the way, that says you are a good reader of commands. Cheers.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.