Cann't modify LDAP Database
mrraj_it@yahoo.com
mrraj_it at yahoo.com
Fri Apr 30 02:28:52 EDT 2004
Hello everybody,
I am Rajesh Pandey from NIT, Jaipur. I have taken LDAP
implementation in college intranet as my final year
project.
I have downloaded openldap-2.1.29 from
www.openldap.org.
I have configured it on linux 2.4.21-4.ELsmp (Kernel
Release). It passed all the tests successfully. I have
addeed four entries by using the command :
slapadd -v -l example.ldif
The directory contents are:
dn: dc=example,dc=com
dc: example
objectClass: dcObject
objectClass: organizationalUnit
ou: Example Dot Com
structuralObjectClass: organizationalUnit
entryUUID: 3dfb901a-2e11-1028-9d78-cf3c4e57a002
creatorsName: cn=manager,dc=example,dc=com
modifiersName: cn=manager,dc=example,dc=com
createTimestamp: 20040429101053Z
modifyTimestamp: 20040429101053Z
entryCSN: 2004042910:10:53Z#0x0001#0#0000
dn: ou=people,dc=example,dc=com
ou: people
objectClass: organizationalUnit
structuralObjectClass: organizationalUnit
entryUUID: 3dfe1420-2e11-1028-9d79-cf3c4e57a002
creatorsName: cn=manager,dc=example,dc=com
modifiersName: cn=manager,dc=example,dc=com
createTimestamp: 20040429101053Z
modifyTimestamp: 20040429101053Z
entryCSN: 2004042910:10:53Z#0x0002#0#0000
dn: cn=rajesh,ou=people,dc=example,dc=com
cn: rajesh
sn: pandey
objectClass: organizationalPerson
structuralObjectClass: organizationalPerson
entryUUID: 3dfe631c-2e11-1028-9d7a-cf3c4e57a002
creatorsName: cn=manager,dc=example,dc=com
modifiersName: cn=manager,dc=example,dc=com
createTimestamp: 20040429101053Z
modifyTimestamp: 20040429101053Z
entryCSN: 2004042910:10:53Z#0x0003#0#0000
dn: cn=sandeep,ou=people,dc=example,dc=com
cn: sandeep
sn: gupta
objectClass: organizationalPerson
structuralObjectClass: organizationalPerson
entryUUID: 3dfea03e-2e11-1028-9d7b-cf3c4e57a002
creatorsName: cn=manager,dc=example,dc=com
modifiersName: cn=manager,dc=example,dc=com
createTimestamp: 20040429101053Z
modifyTimestamp: 20040429101053Z
entryCSN: 2004042910:10:53Z#0x0004#0#0000
Now, I want to add more entries, new attributes or modifications but
it prompts for password. When I provide password secret (as I did for
earlier entries also) it gives the error:
Enter LDAP Password:
ldap_bind: Inappropriate authentication (48)
My slapd.conf file is:
# $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/etc/openldap/schema/core.schema
include .
/usr/local/etc/openldap/schema/cosine.schema
include .
/usr/local/etc/openldap/schema/inetorgperson.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/slapd.pid
argsfile /usr/local/var/slapd.args
# Load dynamic backend modules:
# modulepath /usr/local/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 auth
#
# 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=example,dc=com"
rootdn "cn=Manager,dc=example,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 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
Please suggest me what can be the problem and the way
to come out of it.
Thakns,
Rajesh Pandey
More information about the Kerberos
mailing list