[Date Prev][Date Next] [Chronological] [Thread] [Top]

Regarding distributed directory services : ldap_add_s: Insufficient access (50)



Hi ,
 
my slapd.conf file on parent server is like this :
 
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/new_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/var/run/slapd.pid
argsfile        /usr/local/var/run/slapd.args
# 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:
#       Directives needed to implement policy:
#access to dn.base="" by * read
#access to dn.base="cn=Subschema" by * read
 
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!
 
olcAccess: to * by * write
 
access to *
                by *  write
                by anonymous auth
                by * read
 
#######################################################################
# BDB database definitions
#######################################################################
 
database        bdb
suffix          "dc=cdac,dc=in"
rootdn          "cn=Manager,dc=cdac,dc=in"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# 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/var/openldap-data
# Indices to maintain
index   objectClass     eq
-----------------------------------------------------------------------------------------------------------------------------------------
and slapd.conf on child server is like this :
 
 
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/new_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/var/run/slapd.pid
argsfile        /usr/local/var/run/slapd.args
 
allow update_anon
#allow bind_anon_dn
#allow bind_anon_cred
 
#olcAccess: to dn.children="FileName=Development,dc=cdac,dc=in" by * write
 
#bydn.subtree="FileName=Development,dc=cdac,dc=in" write
 
olcAccess: to * by * write
 
#######################################################################
# BDB database definitions
#######################################################################
 
database        bdb
suffix          "FileName=Development,dc=cdac,dc=in"
rootdn          "cn=Manager,FileName=Development,dc=cdac,dc=in"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# 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/var/openldap-data
# Indices to maintain
index   objectClass     eq
 
-----------------------------------------------------------------------------------------
when i am trying to add entry under child server through parent server getting error this :
 
bdb_dn2entry("FileName=imp_doc,FileName=rkyadav,FileName=development,dc=cdac,dc=in")
=> bdb_dn2id("FileName=rkyadav,FileName=development,dc=cdac,dc=in")
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30990)
bdb_referrals: op=104 target="FileName=Imp_doc,FileName=rkyadav,FileName=Development,dc=cdac,dc=in" matched="FileName=Development,dc=cdac,dc=in"
ldap_url_parse_ext(ldap://192.168.4.147/FileName=Development,dc=cdac,dc=in)
send_ldap_result: conn=1 op=1 p=3
send_ldap_response: msgid=2 tag=105 err=10
ber_flush: 143 bytes to sd 11
ldap_add_s: Insufficient access (50)
        additional info: no write access to parent
connection_get(11): got connid=1
connection_read(11): checking for input on id=1
ber_get_next
ber_get_next on fd 11 failed errno=0 (Success)
connection_closing: readying conn=1 sd=11 for close
connection_close: conn=1 sd=11
 
Actually ldap_search is successfully done and we are able to get entries of child server from parent server. So, there is no connectivity error.
 
Please reply me as soon as possible
 
Thanks and Regards,
 
Rakesh Yadav