Hi all,
I just wanted to install zimbra 5.0.5 on my ubuntu 8.04 server and configure it to use ldap for system and samba log on.
I followed the instructions to get zimbra ldap working together with samba and pam as described in:
UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI - Zimbra :: Wiki
So far everything seems to work. From Zimbra I can see and configure samba and posix options. When trying to log on as a new user it is not possible.
From the command line of the server getent passwd and grout return all the defined users and groups. Also these defined in Zimbra.
but ldapsearch -x returns
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Adding some additional debug info I found out, that this command is always using localhost.
Code:
root@srvhqbat23:/etc# ldapsearch -x -d5
ldap_create
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_close_socket: 3
ldap_err2string
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
In this case the problem is that it is using localhost:389 instead of myhost.mydomain.com:389
ldapsearch -x -h myhost.mydomain.com
returns all the requested information.
In which file I can change ldap to search my my fqdn by default?
/etc/ldap.conf doesn't seem to be the correct location and I didn't found any other ldap related file containing localhost or 127.0.0.1 as uri.