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-05-2007, 02:46 AM
Junior Member
 
Posts: 6
Default Silly mistake -- now cant log into admin console

Hi everyone. My first experience with Zimbra, and hope to be running it for our charity soon! I love it.

The (background and) problem:
1. On preparing for Zimbra install, I edited the ubuntu 6.06 /etc/hosts file associating my static IP with "mail.domain.com" domain instead of the what I wanted, "domain.com". Consequently, after installing Zimbra, all users have - "john@mail.domain.com" when I would like them to be "john@domain.com"

2. After install completed, I logged into the admin console with admin + password (as inputted in configuration on server) and I added another domain (domain.com) through the web interface. I then added some users including an admin. (Which i believed I gave admin access to -- apparently not!)

3. I attempted to remove the original domain (which was unneeded) and was prompted to remove all users before removing the domain. I removed (silly) the original admin@mail.domain.com account. (Consequently, when I clicked a button to continue working on the web console, the login prompt appeared (I was logged out of the admin console) and I cannot get back in with the original login (obviously) I tried logging in with admin@domain.com but it says user does not have admin rights -- appears there are no other users with admin credentials.

I assumed the admin console login was separate from the email login, and didn't even think about it when I deleted things.

I ran zmprov cd mail.domain.com zimbraAuthMech zimbra which says the old domain (mail.domain.com) still exists.
I also ran zmprov ma admin@domain.com zimbraIsAdminAccount TRUE which gives an error: account.INVALID_ATTR_VALUE (zimbraIsAdminAccount must be TRUE or FALSE)

Have looked through the administrator pdf file and searched the forums (trying the above commands) with no success yet.
Can I use the command line to add administrative rights to my new administrator (admin@domain.com) or is there another way to get back into the admin console???

Many thanks for you help!!

Last edited by animasana; 07-05-2007 at 02:53 AM.. Reason: add detail, punctuation
Reply With Quote
  #2 (permalink)  
Old 07-05-2007, 03:30 AM
Moderator
 
Posts: 6,236
Default

Welcome to the forums,

You could have just left that mail.domain.com there...

Quote:
su zimbra

This will create an additional admin account with the password of 'test123':
zmprov ca testadmin@domain.com test123 zimbraIsAdminAccount TRUE

This will transform a normal existed user account into an admin account (in this example futur-admin will become an admin) :
zmprov ma futur-admin@domain.com zimbraIsAdminAccount TRUE

To change the password run:
zmprov sp testadmin@domain.com NEW_PASSWORD
once you try 'zmprov gaaa' can show you if it did become an admin account

EDIT:
Quote:
I also ran zmprov ma admin@domain.com zimbraIsAdminAccount TRUE which gives an error: account.INVALID_ATTR_VALUE (zimbraIsAdminAccount must be TRUE or FALSE)
sounds like the sticking point
what if you delete that user, then create it as admin off the bat ('ca' instead of the 'ma' method) ?

So did you migrate a bunch of users to this or could you just reinstall?

Last edited by mmorse; 07-05-2007 at 04:02 AM..
Reply With Quote
  #3 (permalink)  
Old 07-05-2007, 03:41 AM
Junior Member
 
Posts: 6
Default

Hi mmorse - you are SO right... could have just left the domain....
have wasted the morning on this!! (honestly didnt think the admin console was directly related to the email address!)

Thanks for the help.

Updated the acct to an admin, then tried to run new password with:
zmprov sp testadmin@domain.com NEW_PASSWORD

do i have to do --
zmprov sp testadmin@domain.com NEW_PASSWORD my-new-password

if I leave that blank (ie just what you suggested i run) does it leave the password blank?

One more question (related) --
If I overstep my max. allowed incorrect logins in the admin console (as per the defaults - ie 10 in any given hour) can I reenable the account from the CLI? (even if its an admin acct?)

Last edited by animasana; 07-05-2007 at 03:43 AM..
Reply With Quote
  #4 (permalink)  
Old 07-05-2007, 03:43 AM
Moderator
 
Posts: 6,236
Default

Quote:
Originally Posted by animasana View Post
Updated the acct to an admin,
so confirm that with zmprov gaaa

Quote:
then tried to run new password with:
zmprov sp testadmin@domain.com NEW_PASSWORD

do I have to do --
zmprov sp testadmin@domain.com NEW_PASSWORD my-new-password

if I leave that blank (ie just what you suggested i run) does it leave the password blank?
That's where it meant for you to fill in the password - fill in the brackets ie: <your data here>

Quote:
zmprov sp <admin email address> <desired password>
If you still have two domains be sure to type the full address on login.
To correct that: zmprov mcf zimbraDefaultDomain domain.com

EDIT: check if it's locked via 'zmaccts'

Last edited by mmorse; 07-05-2007 at 03:51 AM..
Reply With Quote
  #5 (permalink)  
Old 07-05-2007, 03:51 AM
Junior Member
 
Posts: 6
Default

AH! I see now.
Ran it again (the right way) and then attempted to log into console -- successful! You are a star!
Can I now remove the mail.domain.com domain which I do not need? Will I run into any problems?

I tried running: zmprov mcf zimbraDefaultDomain domain.com (where domain.com is the domain I want to keep) and received this error --

ERROR: account.INVALID_ATTR_NAME (invalid attr name: [LDAP: error code 17 - zimbraDefaultDomain: attribute type undefined])

-----
Would still be interested re: the final point of my previous post (re: re-enabling acct from CLI). Again many thanks.

Last edited by animasana; 07-05-2007 at 03:54 AM.. Reason: update, detail
Reply With Quote
  #6 (permalink)  
Old 07-05-2007, 03:59 AM
Moderator
 
Posts: 6,236
Default

Quote:
Originally Posted by animasana View Post
AH! I see now.
Ran it again (the right way) and then attempted to log into console -- successful! You are a star!

Would still be interested re: the final point of my previous post (re: re-enabling acct from CLI). Again many thanks.
peice of cake-I didn't see you ask before because you made so many edits...
zmprov ma <account> zimbraAccountStatus active

Last edited by mmorse; 07-05-2007 at 04:02 AM..
Reply With Quote
  #7 (permalink)  
Old 07-05-2007, 04:13 AM
Moderator
 
Posts: 6,236
Default

Quote:
Can I now remove the mail.domain.com domain which I do not need? Will I run into any problems?
Is it requiring the full email to login?
You can also check via: zmprov gcf zimbraDefaultDomain OR zmprov gacf | grep zimbraDefaultDomain

ie: you may not even have to...if you delete it the other becomes the default anyway. (be sure to at least once reboot via zmcontrol stop/start so you verify things are working...)

Last edited by mmorse; 07-05-2007 at 04:16 AM..
Reply With Quote
  #8 (permalink)  
Old 07-05-2007, 04:13 AM
Junior Member
 
Posts: 6
Default

Thanks! hope to learn from you again soon!
Reply With Quote
  #9 (permalink)  
Old 07-05-2007, 04:17 AM
Moderator
 
Posts: 6,236
Default

your welcome-and enjoy zimbra

a good idea for future help is to add your full version string to your profile (user cp > edit profile > near bottom)
zmcontrol -v

Last edited by mmorse; 07-05-2007 at 04:20 AM..
Reply With Quote
  #10 (permalink)  
Old 07-05-2007, 04:54 AM
Junior Member
 
Posts: 6
Default

Rebooted Zimbra with:
zmcontrol stop
zmcontrol start

All services running fine.

Login still requires full email address after running: zmprov gcf zimbraDefaultDomain and zmprov gacf | grep zimbraDefaultDomain

Not a problem tho.

Do you know of a thread/tutorial where someone has explained how they setup their email server at home behind their average router with an average ADSL connection? *(covering port forwarding, dynamic dns service, setting up mx records correctly, using an external smpt server (client?)) I have tutorials for each, but cant seem to fit them all together.
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.