ldapsearch (Can't contact ldap server)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ldapsearch (Can't contact ldap server)
# 1  
Old 02-23-2007
ldapsearch (Can't contact ldap server)

Hi,

Can somebody help me with ldapsearch? I am a newbie with linux and trying to do a ldapquery to resolve a full name from Active Directory?

When i give the command ldapsearch -h sso541885 "cn=mloon"
I get the error "ldap_sasl_interactive_bind_s: can't contact ldap server

Regards,

Michel
# 2  
Old 02-23-2007
What does

telnet sso541885 ldap

show? You are sure the hostname can resolve to a valid IP? and the firewall has not blocked anything?
# 3  
Old 02-23-2007
Hostname not working Ip does

Hi

when I give the command telnet ip-address ldap it does work (hostname does not)

Suppose a want to find the full name for the user mloon... what command do i need to give?

Thanks,

Michel
# 4  
Old 02-23-2007
Can you first test by replacing the hostname with the IP address of the host?
# 5  
Old 02-26-2007
no succes with IP address

Hi,

With the ip address i get the same error!!

Regards,

Michel
# 6  
Old 02-26-2007
Try capture the network traffic between the host and LDAP server with tcpdump or ethereal/Wireshark while you are running ldapsearch. Check whether the search request really reach the LDAP server or simply blocked (say if the request is sent in UDP and the firewall blocked the response so the client assumed the server could not be contacted).
# 7  
Old 02-27-2007
Connection made... and now?

Hi with the following command I can make a connection:

Code:
ldapsearch -x -h domain -D username -w password -b "dc=example,dc=nl"

This gives me acces to the ldap server

If I give the command

Code:
ldapsearch -x -h domain -D username -w password -b "dc=example,dc=nl" -t uid=mloon

this will not work

but if i do this I do get a result:

Code:
ldapsearch -x -h domain -D username -w password -b "dc=example,dc=nl" "objectclass=*"

Can somebody tell me what I am doing wrong?

Regards,

Michel
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to add new server into ldap?

Hello Admins, I need help in adding newly built solaris 10 zone into LDAP server. We have LDAP server running on Solaris 10. We just built new solaris zone and would like to add it to LDAP server. The LDAP serves as centralized user administration. Please let me know the steps. (1 Reply)
Discussion started by: snchaudhari2
1 Replies

2. Solaris

LDAP Client not connecting to LDAP server

I have very limited knowledge on LDAP configuration and have been trying fix one issue, but unsuccessful. The server, I am working on, is Solaris-10 zone. sudoers is configured on LDAP (its not on local server). I have access to login directly on server with root, but somehow sudo is not working... (9 Replies)
Discussion started by: solaris_1977
9 Replies

3. Cybersecurity

Fail2ban ERROR Unable to contact server. Is it running?

Hello, my fail2ban service is running (ps aux) When i do: fail2ban-client status it returns: ERROR Unable to contact server. Is it running? same message on fail2ban restart. In /etc/fail2ban/fail2ban.conf i see this line: socket = /var/run/fail2ban/fail2ban.sock but this file does... (1 Reply)
Discussion started by: postcd
1 Replies

4. UNIX and Linux Applications

Server migration from samba+ldap to windows server 2003

Hi, i have a server installed samba+openldap (pdc). Need to migration windows server 2003 (active directory) object users, computers. Where you can read how to do it? Or can tell me how to do it? Thanks. P.S. Sorry for bad english (0 Replies)
Discussion started by: ap0st0l
0 Replies

5. UNIX for Advanced & Expert Users

LDAP SERVER: OS TO USE

I'm doing a lot of research on ldap server, and wanted to know the best and easiest OS to deploy it on. Please submit OS type and version. We are planning to deploy this in the next a couple of months. Probably deploy this as a VMware VM, but we have SPARC and x64 physical servers we can use. ... (2 Replies)
Discussion started by: joesomontan
2 Replies

6. Shell Programming and Scripting

Unix ldapsearch can not contact a Windows LDAP Server

Good morning, Firstly my appologies if this post is not exactly approprate for this forum but I do not know were else to post it. If anyone knows of a better forum for this please let me know. I need to script an ldapsearch that will interrogate both unix and windows ldap servers. When it... (1 Reply)
Discussion started by: twk
1 Replies

7. Shell Programming and Scripting

need help on configuring LDAP server on solaris

HI All I need help to understand how the ldap works in Solaris 9 & Solaris 10. Kindly provide me some helpful commands related to LDAP Regards Jagan (2 Replies)
Discussion started by: jaganblore
2 Replies

8. Solaris

couldn't contact the DHCP server

hi when i configure for DHCP in my solaris it says not able to contact dhcp server.. what might be the problem( is there any problem in recognizing my hostname by DHCP Server)? can any one explain thanks in advance (1 Reply)
Discussion started by: srikanthg
1 Replies

9. Solaris

How to disable LDAP server on solaris9/10?

hi, I found /etc/rc2.d/S**ldap.client, while it's just the client of LDAP, where can I found the ldap server? when/where/how did it start on solaris 9/10? Could anyone help me? Best Wishes. (1 Reply)
Discussion started by: a2156z
1 Replies

10. UNIX for Advanced & Expert Users

Finding LDAP server configurations

Hi, I'm using debian etch in my server and have a preconfigured LDAP server. I want to know which configuration can I use to configure libnss-ldap. My main questions is: Does the LDAP database require login? Special LDAP privileges for root? Make the configuration file readable/writeable by... (1 Reply)
Discussion started by: mjdousti
1 Replies
Login or Register to Ask a Question