Difference between revisions of "Resetting LDAP & MySQL Passwords"

Line 33: Line 33:
  
 
== Resetting Mailbox Database Passwords  ==
 
== Resetting Mailbox Database Passwords  ==
 +
Make sure mailbox database is running.  Run all commands as user ''zimbra''.
 +
 +
This checks for a pid file:
 +
  > mysql.server status
 +
  mysql is running with pid 23830
 +
 +
Also use:
 +
  > ps a | grep mysqld.*my.cnf
 +
 
 +
 
'''root account'''
 
'''root account'''
 
+
Set ''newpassword'' to your desired password.
Set ''newpassword'' to your desired password. Run as user ''zimbra'':
 
  
 
   > zmmypasswd --root newpassword
 
   > zmmypasswd --root newpassword
Line 44: Line 53:
  
 
== Resetting Logger Database Passwords  ==
 
== Resetting Logger Database Passwords  ==
'''In the event you have lost your logger password, or it has otherwise become out of sync after an upgrade, you can reset it. Keep in mind that the logger is not a required component to have running.'''
+
Make sure mailbox database is running.  Run all commands as user ''zimbra''.
 +
 
 +
  > ps a | grep mysqld.*my.logger.cnf
  
 
'''root account'''
 
'''root account'''
  
Set ''newpassword'' to your desired password. Run as user ''zimbra'':
+
Set ''newpassword'' to your desired password.
  
 
   > zmmylogpasswd --root newpassword
 
   > zmmylogpasswd --root newpassword

Revision as of 19:52, 27 December 2007

One of the most common problems with installing and starting a service is an incorrect LDAP or MySQL password.


Resetting the LDAP Password

First, we need to make sure that Zimbra is stopped.

Try running:

> su zimbra
> zmcontrol stop

Just to be safe, you can make sure that all Zimbra services are stopped:

> ps auxww | grep zimbra
> ps auxww | grep slapd


Kill any left over processes.

Now, we can reset the passwords:

First the root(note: these are run as user zimbra)

> zmldappasswd --root newpass

Next the zimbra:

> zmldappasswd newpass

Make sure you use the same password for both!

Resetting Mailbox Database Passwords

Make sure mailbox database is running. Run all commands as user zimbra.

This checks for a pid file:

 > mysql.server status
 mysql is running with pid 23830

Also use:

 > ps a | grep mysqld.*my.cnf
 

root account Set newpassword to your desired password.

 > zmmypasswd --root newpassword

zimbra account

 > zmmypasswd newpasswd

Resetting Logger Database Passwords

Make sure mailbox database is running. Run all commands as user zimbra.

 > ps a | grep mysqld.*my.logger.cnf

root account

Set newpassword to your desired password.

 > zmmylogpasswd --root newpassword

zimbra account

 > zmmylogpasswd newpasswd

Related Articles

Zimbra CLI Command List



Keywords: ldap, logger, database, password

Jump to: navigation, search