LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ldap_sasl_interactive_bind_s: Can't contact LDAP server (81) (https://www.linuxquestions.org/questions/linux-software-2/ldap_sasl_interactive_bind_s-cant-contact-ldap-server-81-a-131477/)

Jingle 01-04-2004 02:28 PM

ldap_sasl_interactive_bind_s: Can't contact LDAP server (81)
 
Hi there ,

Does any one know what this means when I'm trying a simple ldapsearch ?
I use an ldapserver for my adressbook over the network , but strangely something happened and i don't have a clue whats going on .

I read the man pages of openldap on my machine but that didn't help me , perhaps anyone of you can . help would be very appreciated.

and a happy new year to all the linux fans :-)

ac1980 01-04-2004 08:33 PM

check you're not running a firewall that prevents you from accessing ldap port (389 i think)

Jingle 01-06-2004 01:05 PM

Well i'm not running a fire wall , but have redhats security level to medium , even when i put it to no security level at all I still get that message .
Normally one could always telnet a port on the machine and get someting back like a connected status, but I get connection refused when I telnet to port 389 , could you tell me how to open it ? , or what to do about it ?

ac1980 01-08-2004 11:20 AM

Sorry, I never used RH since 5.1 so I don't know it's security policy...

Quote:

Normally one could always telnet a port on the machine and get someting back like a connected status, but I get connection refused...
Well, actually these days you can telnet a port only if there's a daemon/service waiting for you on the target. What host did you try to telnet to? If it's your box, it's probably not configured to act as a ldap server.
Can you ping the ldap server you're trying to connect to?
If so, try these lines as root:
Code:

iptables -A OUTPUT -d <ldap-server-ip> -j ACCEPT
iptables -A INPUT -s <ldap-server-ip> -j ACCEPT

This will allow ANY connection to/from your ldap server, so is somewhat unsafe, but will quickly show if it's a local firewalling problem.
Then try a search.
Note that iptables chains are not persistent, so don't worry too much about messing things: your iptables will go back to previous state after reboot.

Tell me if this solved, in case I might help you find a more "secure" setup.

Here is an iptables howto, only if you feel brave or courious:
http://www.telematik.informatik.uni-...les-HOWTO.html

Jingle 01-08-2004 12:41 PM

Thanx i'll try that and let you know ! little bit busy with other stuff ....so


All times are GMT -5. The time now is 08:30 AM.