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

Problem: Adding new entries on version 2.



Hi All !!!!
I decided to upgrade from openLdap 1.2.11 to 2.  I've never really had this
problem with 1.2.11.  When I installed openLdap 2 and have some problems adding the
first entry.
 
I try to add entries to my ldbm througt archive.ldif but i don't secced.
 
osvaneo:/ldif# ldapsearch -x  -b '' -s base '(objectclass=*)' namingContexts
version: 2
 
#
# filter: (objectclass=*)
# requesting: namingContexts
#
 
#
dn:
namingContexts: ou=accessuser,dc=osite,dc=net
 
# search result
search: 2
result: 0 Success
 
# numResponses: 2
# numEntries: 1
osvaneo:/ldif#
 
 
 
This is my archive .ldif:
osvaneo:/ldif# more entry.ldif
dn: ou=accessuser, dc=osite, dc=net
objectclass: dcObject
objectclass: organization
ou:accessuser
 
dn: uid=psabatino@osite.net, ou=accessuser, dc=osite, dc=net
uid: psabatino@osite.net
objectclass: top
objectclass: person
objectclass: organizationalPerson
userpassword: {crypt}sDnJ86CNcLVz.
domain: osite.net
 
dn: uid=esabatino@osite.net, ou=accessuser, dc=osite, dc=net
uid: esabatino@osite.net
objectclass: top
objectclass: person
objectclass: organizationalPerson
userpassword: {crypt}sghCdWdfLVz.
domain: osite.net
 
dn: ou=accessuser, dc=osite, dc=net
objectclass: dcObject
objectclass: organization
ou: accessuser
osvaneo:/ldif#
 
 
 
 
This is my archive: slapd.conf
osvaneo:/usr/local/etc/openldap# more slapd.conf
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18 kurt Exp $
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/radius.schema
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
#
database ldbm
suffix "ou=accessuser, dc=osite, dc=net"
rootdn "cn=root, dc=osite, dc=net"
rootpw alabama
directory /ldap/accessuser
index uid pres,eq
index objectClass eq
#access to * by dn="cn=root,dc=osite,dc=net" write
 
 
But when I tried to add it tells me:
osvaneo:/ldif# ldapadd -x -D "cn=root,dc=osite,dc=net" -w alabama -f entry.ldif -v
ldap_initialize( <DEFAULT> )
ldap_bind: Invalid credentials
osvaneo:/ldif# ldapadd -x -D "cn=root,dc=osite,dc=net" -w alabama -f entry.ldif  
ldap_bind: Invalid credentials
osvaneo:/ldif#
 
 
I don't understand and have no idea where to go from here.
Please, help me!
Anyone con help me??
Thanks for any help.
 
pablo.