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 11-04-2010, 06:18 AM
Junior Member
 
Posts: 6
Default LDAP: error code 49 - Invalid Credentials

When I run the command "zmsetup.pl" after the installation (zcs 6.0.8) I get this error:

Quote:
ERROR: service.FAILURE (system failure: unable to lookup server by name: mail.1980consultors.net message: [LDAP: error code 49 - Invalid Credentials]) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
Useful info:

Quote:
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 lnxserver.1980consultors.es lnxserver localhost.localdomain localhost
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.2 mail.1980consultors.net mail
192.168.0.2 zimbra.1980consultors.net zimbra
192.168.0.2 lnxserver.1980consultors.net lnxserver

Quote:
cat /etc/resolv.conf
search 1980consultors.es
nameserver 192.168.0.2
Quote:
dig 1980consultors.net mx

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> 1980consultors.net mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10886
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;1980consultors.net. IN MX

;; ANSWER SECTION:
1980consultors.net. 86400 IN MX 10 mail.1980consultors.net.1980consultors.net.

;; AUTHORITY SECTION:
1980consultors.net. 86400 IN NS zimbra.1980consultors.net.1980consultors.net.

;; Query time: 0 msec
;; SERVER: 192.168.0.2#53(192.168.0.2)
;; WHEN: Thu Nov 4 14:19:56 2010
;; MSG SIZE rcvd: 97
Quote:
dig 1980consultors.net any

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> 1980consultors.net any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23617
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;1980consultors.net. IN ANY

;; ANSWER SECTION:
1980consultors.net. 86400 IN SOA zimbra.1980consultors.net.1980consultors.net. root. 6 28800 7200 604800 86400
1980consultors.net. 86400 IN NS zimbra.1980consultors.net.1980consultors.net.
1980consultors.net. 86400 IN MX 10 mail.1980consultors.net.1980consultors.net.

;; Query time: 0 msec
;; SERVER: 192.168.0.2#53(192.168.0.2)
;; WHEN: Thu Nov 4 14:20:18 2010
;; MSG SIZE rcvd: 137

Quote:
host 1980consultors.net
1980consultors.net mail is handled by 10 mail.1980consultors.net.1980consultors.net.
Reply With Quote
  #2 (permalink)  
Old 11-04-2010, 06:36 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Could it be that you don't have an A record and your MX record is also invalid for your server:

Code:
1980consultors.net. 86400 IN MX 10 mail.1980consultors.net.1980consultors.net.
You need to check your bind config files, you seem to have an error.

Your hosts file really should contain only the following entries:

Code:
127.0.0.1 localhost.localdomain localhost
192.168.0.2 mail.1980consultors.net mail
Check the configuration of these entries in the Split DNS wiki article.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 11-05-2010, 03:41 AM
Junior Member
 
Posts: 6
Default

Ok, I reconfigured the DNS server. I'm getting the same error in the update.

Quote:
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.2 mail.1980consultors.net mail
Quote:
cat /etc/resolv.conf
search 1980consultors.net
nameserver 192.168.0.251 <- the new DNS server
Quote:
dig 1980consultors.net mx

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> 1980consultors.net mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7015
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;1980consultors.net. IN MX

;; ANSWER SECTION:
1980consultors.net. 86400 IN MX 10 mail.1980consultors.net.

;; AUTHORITY SECTION:
1980consultors.net. 86400 IN NS zimbra.1980consultors.net.

;; ADDITIONAL SECTION:
mail.1980consultors.net. 86400 IN A 192.168.0.2

;; Query time: 1 msec
;; SERVER: 192.168.0.251#53(192.168.0.251)
;; WHEN: Fri Nov 5 11:36:09 2010
;; MSG SIZE rcvd: 94

Quote:
dig 1980consultors.net any

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> 1980consultors.net any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35518
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;1980consultors.net. IN ANY

;; ANSWER SECTION:
1980consultors.net. 86400 IN SOA zimbra.1980consultors.net. root. 10 28800 7200 604800 86400
1980consultors.net. 86400 IN NS zimbra.1980consultors.net.
1980consultors.net. 86400 IN MX 10 mail.1980consultors.net.
1980consultors.net. 86400 IN A 192.168.0.2

;; ADDITIONAL SECTION:
mail.1980consultors.net. 86400 IN A 192.168.0.2

;; Query time: 1 msec
;; SERVER: 192.168.0.251#53(192.168.0.251)
;; WHEN: Fri Nov 5 11:36:23 2010
;; MSG SIZE rcvd: 150

Quote:
host $(hostname)
mail.1980consultors.net has address 192.168.0.2
Quote:
host 1980consultors.net
1980consultors.net has address 192.168.0.2
1980consultors.net mail is handled by 10 mail.1980consultors.net.
I attach the installation log.
Attached Files
File Type: log zmsetup.log (89.2 KB, 1 views)

Last edited by Cuenta; 11-05-2010 at 03:54 AM.. Reason: Attach the installation log
Reply With Quote
  #4 (permalink)  
Old 11-05-2010, 03:59 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Is this a new install and is there any mail on this Zimbra installation that you need to keep?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 11-05-2010, 04:14 AM
Junior Member
 
Posts: 6
Default

It's an update from 5.0.21_GA_3150 and I need keep all the email accounts.
Reply With Quote
  #6 (permalink)  
Old 11-05-2010, 04:46 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by Cuenta View Post
It's an update from 5.0.21_GA_3150 and I need keep all the email accounts.
It's slightly confusing posting this in the Installation forum, I'll move it to the correct forum.

Try the instructions here first (then rerun the set-up): Upgrade to 3.0.1_GA_160 broke
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 11-05-2010, 05:17 AM
Junior Member
 
Posts: 6
Default

Quote:
Originally Posted by phoenix View Post
Try the instructions here first (then rerun the set-up): Upgrade to 3.0.1_GA_160 broke
When I try to do "zmldappasswd -r "password"" I get :

Quote:
Updating local config and LDAP
connect: No such file or directory at /opt/zimbra/bin/zmldappasswd line 97, <DATA> line 522.
Reply With Quote
  #8 (permalink)  
Old 11-05-2010, 05:38 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

I assume you ran this as the Zimbra user? Does that file actually exist?
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 11-05-2010, 05:49 AM
Junior Member
 
Posts: 6
Default

Yes, I ran the command as the Zimbra user.

The line 97 in zmldappasswd is:

Quote:
$ldap = Net::LDAP->new('ldapi://%2fopt%2fzimbra%2fopenldap%2fvar%2frun%2fldapi/') or die "$@";
But I don't know what is "<DATA> line 522".
Reply With Quote
  #10 (permalink)  
Old 11-05-2010, 11:27 AM
Zimbra Employee
 
Posts: 580
Default

This means it was unable to create an ldapi socket, which means there's something very wrong with your system.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
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.