Could not connect to any LDAP server as (null) error

Posted by wirelessman on Ask Ubuntu See other posts from Ask Ubuntu or by wirelessman
Published on 2012-08-27T17:14:06Z Indexed on 2012/08/28 3:52 UTC
Read the original article Hit count: 249

Filed under:
|

I am using a Windows 2008 Server as my LDAP server and on a Ubuntu 12.04 client I am trying to connect to it. I get the following error:

nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server

From my Ubuntu client I run the following:

ldapsearch -h 10.1.1.251 -D admin -w password -s base dc=ad,dc=xxx,dc=com -p 389

and get the following success message

# search result
search: 2
result: 0 Success

Any help would be greatly appreciated.

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about ldap