From: Johannes Geiss <johannes.geiss@web.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] OpenLDAP works only at localhost, not from outside
Date: Wed, 31 Aug 2011 18:24:26 +0200 [thread overview]
Message-ID: <20110831182426.79c1b146@polaris> (raw)
[-- Attachment #1: Type: text/plain, Size: 1751 bytes --]
Hi there,
I want to access my LDAP-data from anywhere on the internet but I only
get it working on localhost.
I installed OpenLDAP 2.4.24, and tried to do the tutorial at
http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP.html
The LDAP database works fine from localhost with
ldapsearch -vLx -b "o=stooges" "(sn=Fine)" -h localhost
but if I try to do it from the outside (ie. the IP address my router
gave me via DHCP)
ldapsearch -vLx -b "o=stooges" "(sn=Fine)" -h xxx.xxx.xxx.xxx
I get the output "ldap_initialize( ldap://xxx.xxx.xxx.xxx )" and the
client hangs.
The slapd server prints
slap_listener_activate(6):
>>> slap_listener(ldap:///)
connection_get(17): got connid=1000
connection_read(17): checking for input on id=1000
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
op tag 0x60, time 1314787890
ber_get_next
conn=1000 op=0 do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <>
<<< dnPrettyNormal: <>, <>
do_bind: version=3 dn="" method=128
send_ldap_result: conn=1000 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush2: 14 bytes to sd 17
do_bind: v3 anonymous bind
and hangs at this point until I Ctrl-C the client or wait approx. 5
Minutes.
Does anybody successfully installed an LDAP-service with access from
the outside? What is the content of slapd.conf?
Did I miss anything else?
Thank you for any suggestions
Johannes
--
------//--------------------------------------------------------------
// PGP at https://pegasos.dnsalias.org/~jgeiss/pgpkey.txt
\\ // Johannes R. Geiss Pandora, Zaurus, Pegasos, Amiga and C64
--\X/-----------------------------------------------------------------
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next reply other threads:[~2011-08-31 16:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-31 16:24 Johannes Geiss [this message]
2011-09-02 6:50 ` [gentoo-user] OpenLDAP works only at localhost, not from outside Joost Roeleveld
2011-09-05 4:50 ` Johannes Geiss
2011-09-05 9:25 ` Joost Roeleveld
2011-09-06 15:18 ` Michael Mol
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110831182426.79c1b146@polaris \
--to=johannes.geiss@web.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox