akira420 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 May 2003 Posts: 45
|
Posted: Tue Sep 28, 2004 4:14 am Post subject: ldap problems |
|
|
Hello, i've followed the gentoo's docs and setting up an ldap server to the T, http://www.gentoo.org/doc/en/ldap-howto.xml, but when i goto test my ldap connection, the verbose out put shows that it's timing out
Code: |
linux migrationtools # ldapsearch -D "192.168.0.102" -W -d 255
ldap_create
Enter LDAP Password:
ldap_bind_s
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: TCP linux.home.lan:636
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 192.168.0.102:636
ldap_connect_timeout: fd: 3 tm: -1 async: 0
ldap_ndelay_on: 3
ldap_is_sock_ready: 3
ldap_ndelay_off: 3
ldap_open_defconn: successful
ldap_send_server_request
ber_flush: 35 bytes to sd 3
0000: 30 21 02 01 01 60 1c 02 01 03 04 0d 31 39 32 2e 0!...`......192.
0010: 31 36 38 2e 30 2e 31 30 32 80 08 73 74 69 6e 67 168.0.102..sting
0020: 72 61 79 ray
ldap_write: want=35, written=35
0000: 30 21 02 01 01 60 1c 02 01 03 04 0d 31 39 32 2e 0!...`......192.
0010: 31 36 38 2e 30 2e 31 30 32 80 08 73 74 69 6e 67 168.0.102..sting
0020: 72 61 79 ray
ldap_result msgid 1
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
wait4msg (infinite timeout), msgid 1
wait4msg continue, msgid 1, all 1
** Connections:
* host: linux.home.lan port: 636 (default)
refcnt: 2 status: Connected
last used: Mon Sep 27 20:39:44 2004
** Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
** Response Queue:
Empty
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
ldap_int_select
read1msg: msgid 1, all 1
ber_get_next
ldap_read: want=8, got=0
ber_get_next failed.
ldap_perror
ldap_bind: Can't contact LDAP server (81)
|
/etc/openldap/slapd.conf
Code: |
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24 23:19:14 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
password-hash {crypt}
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
# Load dynamic backend modules:
# modulepath /usr/lib/openldap/openldap
# moduleload back_bdb.la
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
# Sample security restrictions
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64
# Sample access control policy:
# Root DSE: allow anyone to read it
# Subschema (sub)entry DSE: allow anyone to read it
# Other DSEs:
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
# Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
# by self write
# by users read
# by anonymous auth
#
# if no access controls are present, the default policy is:
# Allow read by all
#
# rootdn can always write!
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "dc=home,dc=lan"
rootdn "cn=linux,dc=home,dc=lan"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw {MD5}nowBzifnZG0qXyTBj/rIpw==
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/lib/openldap-data
# Indices to maintain
index objectClass eq
|
_________________ you can pick your friends, and you can pick your nose, but you can't pick your friends nose |
|