Resetting LDAP & MySQL Passwords: Difference between revisions

m (only need one Resetting_LDAP_and_MySQL_Passwords page)
 
Line 1: Line 1:
One of the most common problems with installing and starting a service is an incorrect LDAP or MySQL password.
#REDIRECT [[Resetting_LDAP_and_MySQL_Passwords]]
 
 
== 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!
 
 
''Note: For Zimbra 5.0 and newer, you must start Zimbra with:''
 
> zmcontrol start
 
And then use the following to change the root user
 
> zmldappasswd -r '''newpass'''
 
Next the zimbra:
 
> zmldappasswd '''newpass'''
 
== 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|Zimbra CLI Command List]]
 
----
<br> Keywords: ''ldap, logger, database, password''
 
{{Article_Footer|unknown|3/28/2006}}
 
[[Category: LDAP]]
[[Category: MySQL]]
[[Category: Pending Certification]]
[[Category: Troubleshooting]]

Latest revision as of 19:39, 12 May 2009

Jump to: navigation, search