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 10-06-2009, 08:53 AM
New Member
 
Posts: 4
Default [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 ?
Reply With Quote
  #2 (permalink)  
Old 10-06-2009, 01:22 PM
Moderator
 
Posts: 1,147
Default

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" ?
Reply With Quote
  #3 (permalink)  
Old 10-06-2009, 07:18 PM
Elite Member
 
Posts: 338
Unhappy

Quote:
Originally Posted by Emmanuel Kasper View Post
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
Reply With Quote
  #4 (permalink)  
Old 10-07-2009, 02:11 AM
New Member
 
Posts: 4
Default

@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.
Reply With Quote
  #5 (permalink)  
Old 10-07-2009, 02:22 AM
New Member
 
Posts: 4
Default

@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.
Reply With Quote
  #6 (permalink)  
Old 10-07-2009, 10:12 AM
Moderator
 
Posts: 1,147
Default

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...
Reply With Quote
  #7 (permalink)  
Old 10-21-2009, 06:27 AM
New Member
 
Posts: 4
Default

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 !
Reply With Quote
  #8 (permalink)  
Old 10-21-2009, 09:50 AM
Moderator
 
Posts: 1,147
Default

Glad to hear that worked for you, still is rather bizarre that it disappeared in the first place.
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.