Hi,

I'm trying to get Ubuntu 8.04 to authenticate against an OpenLDAP server we have here (which I installed last week on RedHat and is working OK with RedHat and HP-UX clients)... but Ubuntu just doesn't want to play.

I've installed the relevant packages using the instructions in LDAPClientAuthentication but I can't work out why it's not talking to the LDAP server.

Before I installed the packages there was already an /etc/ldap/ldap.conf, but now there is also a /etc/ldap.conf, and I've tried filling in both of these with the server details, but still I get this...

# ldapsearch -vv -x -b 'dc=company,dc=com' '(objectclass=*)'
ldap_initialize( <DEFAULT> )
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

I've also tried with -d1 option, which tells me it's not picking up the correct server to bind to....


# ldapsearch -vv -x -b 'dc=company,dc=com' '(objectclass=*)' -d1
ldap_initialize( <DEFAULT> )
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)

How do I tell which ldap.conf it's trying to use (perhaps it should be somewhere else completely? - I've tried different debug levels, 7,15...255 but don't get much more verbosity)

Here's my (snipped) ldap.conf...

# egrep -v -e "^#|^$" /etc/ldap.conf
host my_ldap_host
base dc=company,dc=com
uri ldapi:///my_ldap_host
ldap_version 3
rootbinddn cn=Manager,dc=company,dc=com
pam_password md5

Thanks,

Steve