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 12-02-2009, 02:47 AM
Intermediate Member
 
Posts: 20
Default [SOLVED] Zimbra - Samba issue

Hi everybody,

I'm trying to get Zimbra in connection with LDAP and Samba working. However, whatever I try, the log.smbd file always shows me the following error.
Quote:
lib/smbldap_util.c:233(add_new_domain_info)
add_new_domain_info: failed to add domain dn= sambaDomainName=NAME,dc=part1,dc=part2,dc=de with: Invalid DN syntax
invalid DN
Does anybody know what might be causing this? I guess the "dn= " should have an entry, instead of followed immediately by the "sambaDomainName="?

Thanks already!
Reply With Quote
  #2 (permalink)  
Old 12-02-2009, 02:57 AM
Intermediate Member
 
Posts: 20
Default

I think you have used the HOW-TO for zimbra5 on a zimbra6
Reply With Quote
  #3 (permalink)  
Old 12-03-2009, 08:05 AM
Intermediate Member
 
Posts: 20
Default

Yes, you were right. I followed now these intructions
UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI 6.0 - Zimbra :: Wiki

Now I got another problem. The smbd.log file shows me

Quote:
[2009/12/03 16:10:23, 2] lib/smbldap.c:1052(smbldap_connect_system)
failed to bind to server ldap://...../ with dn="uid=zmposixroot,cn=appaccts,cn=zimbra" Error: Invalid credentials
(unknown)
I added both users zmposix and zmposixroot. When I try

ldapsearch -D uid=zmposix,cn=appaccts,cn=zimbra -W -x

with the zmposix password, everything works fine. But if I try

ldapsearch -D uid=zmposixroot,cn=appaccts,cn=zimbra -W -x

with the zmposixroot password, I get

Quote:
ldap_bind: Invalid credentials (49)
I tried to change the password for zmposixroot manually by using

ldappasswd -x -S zmposixroot

However, this gives me

Quote:
Result: Strong(er) authentication required (8)
Additional info: only authenticated users may change passwords
Any idea whats going on here?
Reply With Quote
  #4 (permalink)  
Old 12-03-2009, 12:52 PM
Moderator
 
Posts: 1,147
Default

Try taking a look at ldappasswd(1): change password of LDAP entry - Linux man page, you need to specify the same options that you do for all other ldap commands (Ie. bindDN, password and the like).
Reply With Quote
  #5 (permalink)  
Old 12-03-2009, 11:11 PM
Intermediate Member
 
Posts: 20
Default

i have taken this for admindn and rootbindn
ldap admin dn = "cn=config"

dont forget to
smbpasswd -w<pass>

and between the -w and the pass no space
Reply With Quote
  #6 (permalink)  
Old 12-04-2009, 10:59 AM
Moderator
 
Posts: 1,147
Default

Using -w is generally bad practice as your password is then stored in the history file. Try using -W which will prompt for the password, or using a password file that has proper security permissions.
Reply With Quote
  #7 (permalink)  
Old 12-10-2009, 05:47 AM
Intermediate Member
 
Posts: 20
Default

Well, we managed to solve the problem with the zmposixroot-account which was generated with faulty properties. So now we can search and connect with the zmposixroot-credentials.

The problem remains: the smb-log shows
Code:
[2009/12/10 14:33:17,  3] lib/smbldap.c:1067(smbldap_connect_system)
  ldap_connect_system: successful connection to the LDAP server
[2009/12/10 14:33:17,  3] lib/smbldap_util.c:302(smbldap_search_domain_info)
  smbldap_search_domain_info: Got no domain info entries for domain
[2009/12/10 14:33:17,  3] lib/smbldap_util.c:163(add_new_domain_info)
  add_new_domain_info: Adding new domain
[2009/12/10 14:33:17,  1] lib/smbldap_util.c:233(add_new_domain_info)
  add_new_domain_info: failed to add domain dn= sambaDomainName=mydomainname,dc=part1,dc=part2,dc=part3 with: Invalid DN syntax
        invalid DN
[2009/12/10 14:33:17,  0] lib/smbldap_util.c:310(smbldap_search_domain_info)
  smbldap_search_domain_info: Adding domain info for VWL4 failed with NT_STATUS_UNSUCCESSFUL
and we're back to post 1

Last edited by Paulatia; 12-10-2009 at 06:05 AM..
Reply With Quote
  #8 (permalink)  
Old 12-11-2009, 12:01 PM
Intermediate Member
 
Posts: 20
Default

Ok, this problem is solved, we had a problem with the samba.schema/ldif....
Reply With Quote
  #9 (permalink)  
Old 05-05-2010, 12:05 AM
Starter Member
 
Posts: 1
Default what was the problem on samba.ldif?

I got the same problem, i got bad credentials, how do you solved?
please explain.
thanks.
Reply With Quote
  #10 (permalink)  
Old 09-15-2010, 02:23 PM
Loyal Member
 
Posts: 89
Default ldap_bind: Invalid credentials fix

Quote:
Originally Posted by Paulatia View Post
Ok, this problem is solved, we had a problem with the samba.schema/ldif....
I'm having the same problem. I've re-created my samba.ldif file over and over with no luck. What was the fix for this? Could you share the particulars?

TT
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.