public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] OpenLDAP works only at localhost, not from outside
@ 2011-08-31 16:24 Johannes Geiss
  2011-09-02  6:50 ` Joost Roeleveld
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Geiss @ 2011-08-31 16:24 UTC (permalink / raw
  To: gentoo-user

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-06 15:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-31 16:24 [gentoo-user] OpenLDAP works only at localhost, not from outside Johannes Geiss
2011-09-02  6:50 ` Joost Roeleveld
2011-09-05  4:50   ` Johannes Geiss
2011-09-05  9:25     ` Joost Roeleveld
2011-09-06 15:18     ` Michael Mol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox