You are not logged in.

#1 2009-09-28 15:09:59

dnpinpon
Member
Registered: 2009-09-28
Posts: 2

Can't contact LDAP server

I have a problem with configure openldap and want to help me.

In term 1  run: /usr/sbin/slapd -d5
In term 2 run to probe "ldapsearch -x -d5"
1:

ldap_create
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP servidor1.sjv.org:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({i) ber:
ber_flush2: 22 bytes to sd 3
ldap_result ld 0x8f90a0 msgid 1
wait4msg ld 0x8f90a0 msgid 1 (infinite timeout)
wait4msg continue ld 0x8f90a0 msgid 1 all 1
** ld 0x8f90a0 Connections:
* host: servidor1.sjv.org  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Mon Sep 28 16:58:48 2009
** ld 0x8f90a0 Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
  ld 0x8f90a0 request count 1 (abandoned 0)
** ld 0x8f90a0 Response Queue:
   Empty
  ld 0x8f90a0 response count 0
ldap_chkResponseList ld 0x8f90a0 msgid 1 all 1
ldap_chkResponseList returns ld 0x8f90a0 NULL
ldap_int_select
read1msg: ld 0x8f90a0 msgid 1 all 1
ber_get_next
ldap_err2string
ldap_result: Can't contact LDAP server (-1)

2:

......
.....
....
......
......
backend_startup_one: starting "cn=config"
config_back_db_open
config_build_entry: "cn=config"
config_build_entry: "cn=schema"
config_build_entry: "cn={0}core"
config_build_entry: "cn={1}cosine"
config_build_entry: "cn={2}inetorgperson"
config_build_entry: "cn={3}nis"
config_build_entry: "cn={4}misc"
config_build_entry: "cn={5}openldap"
config_build_entry: "cn={6}samba"
config_build_entry: "olcDatabase={-1}frontend"
config_build_entry: "olcDatabase={0}config"
config_build_entry: "olcDatabase={1}bdb"
backend_startup_one: starting "dc=sjv,dc=org"
bdb_db_open: "dc=sjv,dc=org"
bdb_db_open: database "dc=sjv,dc=org": dbenv_open(/var/lib/openldap/openldap-data).
bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
slapd starting
slap_listener_activate(7):
>>> slap_listener(ldap:///)

My slapd.conf

include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/nis.schema
include        /etc/openldap/schema/misc.schema
include        /etc/openldap/schema/openldap.schema
include         /etc/openldap/schema/samba.schema

modulepath    /usr/lib/ldap
moduleload    back_bdb

pidfile   /var/run/slapd.pid
argsfile  /var/run/slapd.args
database        bdb
monitoring on
suffix          "dc=sjv,dc=org"
rootdn          "cn=root,dc=sjv,dc=org"
rootpw          xxxxxxxxxxx
directory       /var/lib/openldap/openldap-data

# Indices to maintain
index objectClass           eq
index cn                    pres,sub,eq
index sn                    pres,sub,eq
index uid                   pres,sub,eq
index displayName           pres,sub,eq
index uidNumber             eq
index gidNumber             eq
index memberUID             eq
index sambaSID              eq
index sambaPrimaryGroupSID  eq
index sambaDomainName       eq
index default               sub

access to *
        by dn="cn=root,dc=sjv,dc=org" write
        by * read

access to attrs=userPassword,sambaLMPassword,sambaNTPassword
        by dn="cn=root,dc=sjv,dc=org" write
    by anonymous auth
    by self write
        by * write

help me please

Last edited by dnpinpon (2009-09-28 15:11:43)

Offline

#2 2009-09-28 16:03:47

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: Can't contact LDAP server

what are you using it for ? addressbook ?


Zygfryd Homonto

Offline

#3 2009-09-28 16:12:54

dnpinpon
Member
Registered: 2009-09-28
Posts: 2

Re: Can't contact LDAP server

ldap+samba in a school.


when i run  slapadd -c -l sjv.ldif

bdb_db_open: database "dc=sjv,dc=org": database already in use.
backend_startup_one (type=bdb, suffix="dc=sjv,dc=org"): bi_db_open failed! (-1)
slap_startup failed

Offline

#4 2009-09-29 11:17:50

clmates
Member
From: A Coruña - España
Registered: 2009-04-25
Posts: 79

Re: Can't contact LDAP server

Hi.

post your /etc/ldap.conf and /etc/openldap/ldap.conf


-

Arch64 - Acer AX3950 - i5-650 3.2 GHz - 8 GB RAM - Nvidia GeForce 320 1 GB Ram
Arch32 - Samsung NC10 - 2 GB Ram

Offline

Board footer

Powered by FluxBB