Gentoo Archives: gentoo-user

From: Johannes Geiss <johannes.geiss@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] OpenLDAP works only at localhost, not from outside
Date: Wed, 31 Aug 2011 16:28:30
Message-Id: 20110831182426.79c1b146@polaris
1 Hi there,
2
3 I want to access my LDAP-data from anywhere on the internet but I only
4 get it working on localhost.
5
6 I installed OpenLDAP 2.4.24, and tried to do the tutorial at
7
8 http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP.html
9
10 The LDAP database works fine from localhost with
11
12 ldapsearch -vLx -b "o=stooges" "(sn=Fine)" -h localhost
13
14 but if I try to do it from the outside (ie. the IP address my router
15 gave me via DHCP)
16
17 ldapsearch -vLx -b "o=stooges" "(sn=Fine)" -h xxx.xxx.xxx.xxx
18
19 I get the output "ldap_initialize( ldap://xxx.xxx.xxx.xxx )" and the
20 client hangs.
21
22 The slapd server prints
23
24 slap_listener_activate(6):
25 >>> slap_listener(ldap:///)
26 connection_get(17): got connid=1000
27 connection_read(17): checking for input on id=1000
28 ber_get_next
29 ber_get_next: tag 0x30 len 12 contents:
30 op tag 0x60, time 1314787890
31 ber_get_next
32 conn=1000 op=0 do_bind
33 ber_scanf fmt ({imt) ber:
34 ber_scanf fmt (m}) ber:
35 >>> dnPrettyNormal: <>
36 <<< dnPrettyNormal: <>, <>
37 do_bind: version=3 dn="" method=128
38 send_ldap_result: conn=1000 op=0 p=3
39 send_ldap_response: msgid=1 tag=97 err=0
40 ber_flush2: 14 bytes to sd 17
41 do_bind: v3 anonymous bind
42
43 and hangs at this point until I Ctrl-C the client or wait approx. 5
44 Minutes.
45
46 Does anybody successfully installed an LDAP-service with access from
47 the outside? What is the content of slapd.conf?
48
49 Did I miss anything else?
50
51 Thank you for any suggestions
52 Johannes
53 --
54
55 ------//--------------------------------------------------------------
56 // PGP at https://pegasos.dnsalias.org/~jgeiss/pgpkey.txt
57 \\ // Johannes R. Geiss Pandora, Zaurus, Pegasos, Amiga and C64
58 --\X/-----------------------------------------------------------------

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] OpenLDAP works only at localhost, not from outside Joost Roeleveld <joost@××××××××.org>