| 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.
|  | 
10-06-2009, 08:53 AM
| | | [SOLVED] Zmsetservername choking on ldap database Hello
I am trying to rename a Zimbra installation from "zimbra" to "zimbra.openforce.com" using the zmsetservername command. I want to have a FQDN zmhostname to make amavis and friends happy.
Unfortunately it seems that the command has some problem with the ldap database.
The output of zmsetservername ends with: adding new entry "uid=zimbra.openforce.com,cn=admins,cn=zimbra.open force.com"
ldapadd: Invalid syntax (21)
additional info: objectClass: value #0 invalid per syntax
adding new entry "cn=zimbra.openforce.com"
adding new entry "uid=zimbra.openforce.com,cn=admins,cn=zimbra.open force.com"
When I restart zimbra, all processes start fine, exect the mailbox daemon. Looking at /opt/zimbra/log/mailbox.log I see
2009-10-06 17:27:53,317 FATAL [main] [] system - Could not find an LDAP entry fo
r server 'zimbra.openforce.com'
I had a look at the content of the ldap database, but well there quite a few with the string zimbra inside ...
Which one do I have to change to make the mailbox server happy ? | 
10-06-2009, 01:22 PM
| | | I believe it is looking for an entry like "cn=zimbra.openforce.com,cn=servers,cn=zimbra" in LDAP. What entries exist currently under "cn=servers,cn=zimbra" ? | 
10-06-2009, 07:18 PM
| | | Quote:
Originally Posted by Emmanuel Kasper Hello
I am trying to rename a Zimbra installation from "zimbra" to "zimbra.openforce.com" using the zmsetservername command. I want to have a FQDN zmhostname to make amavis and friends happy.
Unfortunately it seems that the command has some problem with the ldap database.
The output of zmsetservername ends with: adding new entry "uid=zimbra.openforce.com,cn=admins,cn=zimbra.open force.com"
ldapadd: Invalid syntax (21)
additional info: objectClass: value #0 invalid per syntax
adding new entry "cn=zimbra.openforce.com"
adding new entry "uid=zimbra.openforce.com,cn=admins,cn=zimbra.open force.com"
When I restart zimbra, all processes start fine, exect the mailbox daemon. Looking at /opt/zimbra/log/mailbox.log I see
2009-10-06 17:27:53,317 FATAL [main] [] system - Could not find an LDAP entry fo
r server 'zimbra.openforce.com'
I had a look at the content of the ldap database, but well there quite a few with the string zimbra inside ...
Which one do I have to change to make the mailbox server happy ? | we are the same
When I try:
ZmSetServerName -n my.domain.com
to change my server name, every thing is ok, except:
when I start server, it says that can't start ldap service | 
10-07-2009, 02:11 AM
| | | @dalmate: we have a different problem
On my setup, after using ZmSetServerName, the ldap database is starting properly, only I miss some content.
Please have a look at LDAP - Zimbra :: Wiki and open a different thread if <our database does not start. | 
10-07-2009, 02:22 AM
| | | @ArcaneMagus
indeed i miss a server entry below "cn=servers,cn=zimbra"
original status, on the productiver server Code: grep cn=server /tmp/ldap.ldif
dn: cn=servers,cn=zimbra
dn: cn=zimbra,cn=servers,cn=zimbra after zmsetservername. on the test server Code: grep "cn=servers" /tmp/ldap.ldif
dn: cn=servers,cn=zimbra hum this missing ldap entry contains quite a lot of information actually. Should I try to copy it from the original ldif ? Looks like a scary thing to do.  | 
10-07-2009, 10:12 AM
| | | Well... it is a test server so if something screws up you can revert it, not sure how that whole entry disappeared but it is necessary because as you said, it contains a lot of information... | 
10-21-2009, 06:27 AM
| | | So i added the missing ldap entry ( copied from the ldap tree before running zmsetservername ) on both test and production servers and it worked. the mailbox daemon start und works !  | 
10-21-2009, 09:50 AM
| | | Glad to hear that worked for you, still is rather bizarre that it disappeared in the first place. | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |