LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 7th, 2004, 03:51 PM
yesar1 yesar1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 yesar1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 11 sec
Reputation Power: 0
Error adding the first defined DN to the BDB ( I think!!!!!)

Hello,
I have installed LDAP 2.2.8 with Berkely 4.2.52 .

I can start the slapd server , connect to it using an ldap client LDAP BROWSER/Editor , fetch the DNs .

now when I run


I get an error with the following log

<<< dnPrettyNormal: <cn=Manager,dc=ca,dc=test,dc=com>, <cn=manager,dc=ca,dc=test,dc=com>
do_bind: version=3 dn="cn=Manager,dc=ca,dc=test,dc=com" method=128
bdb_dn2entry_rw("cn=manager,dc=ca,dc=test,dc=com")
=> bdb_dn2id_matched( "cn=manager,dc=ca,dc=test,dc=com" )
<= bdb_dn2id_matched: no match
do_bind: v3 bind: "cn=Manager,dc=ca,dc=test,dc=com" to "cn=Manager,dc=ca,dc=test,dc=com"
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 11
adding new entry "dc=ca,dc=test,dc=com"
connection_get(11): got connid=0
connection_read(11): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 111 contents:
ber_get_next
ber_get_next on fd 11 failed errno=35 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({m) ber:
>>> dnPrettyNormal: <dc=ca,dc=test,dc=com>
=> ldap_bv2dn(dc=ca,dc=test,dc=com,0)
<= ldap_bv2dn(dc=ca,dc=test,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=ca,dc=test,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=ca,dc=test,dc=com,272)=0
<<< dnPrettyNormal: <dc=ca,dc=test,dc=com>, <dc=ca,dc=test,dc=com>


this is my slapd.conf file

# $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 /usr/local/apps/openldap/etc/openldap/schema/core.schema

# 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 /usr/local/apps/openldap/var/slapd.pid
argsfile /usr/local/apps/openldap/var/slapd.args

# Load dynamic backend modules:
# modulepath /usr/local/apps/openldap/libexec/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 write
#
# if no access controls are present, the default policy is:
# Allow read by all
#
# rootdn can always write!

#######################################################################
# ldbm database definitions
#######################################################################

database bdb
suffix "dc=ca,dc=test,dc=com"
rootdn "cn=Manager,dc=ca,dc=test,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw admin
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /usr/local/apps/openldap/var/openldap-data
# Indices to maintain
index cn,sn,uid pres,eq,approx,sub
index objectClass eq



Your input is appreciated ,
Regards,

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Error adding the first defined DN to the BDB ( I think!!!!!)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap