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

Re: question on ldap database creation



Hi Howard,

Thanks a lot .. it was error in the filesystem directory only..

when i tried to create my database in the already existing directory names
'ldap' its working fine, where as when i tried to create the database in a
new directory named 'ldpa1' its giving problem....

Could you tell me the reason why its doing like this ??

Even if I created the filesystem directory 'ldap1' before i start the
service, why the ldapadd is still givinf problem...

Thanks,
Sanjay

----- Original Message -----
From: "Howard Chu" <hyc@highlandsun.com>
To: "'Buchan Milne'" <bgmilne@obsidian.co.za>; "'sanjay'"
<sanjay.a@lifetreeindia.com>
Cc: <openldap-software@OpenLDAP.org>
Sent: Wednesday, January 28, 2004 2:46 PM
Subject: RE: question on ldap database creation


> > -----Original Message-----
> > From: owner-openldap-software@OpenLDAP.org
> > [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Buchan Milne
>
> > > I'm using the commnad :
> > >
> > > ldapadd -x -D "cn=Manager,dc=lifetree,dc=com" -w secret -h
> > 192.168.1.167 -p 389 -P 3 -f addentry1.ldif
> > >
> > > adding new entry "dc=lifetree,dc=com"
> > > ldap_add: Operations error
> > >
> > > ldif_record() = 1
> > >
> > > Can some body help me ?? As its been a long time i'm trying
> > to create database.
> > >
> > > The content of the file addentry1.ldif is :
> > >
> > > dn: dc=lifetree,dc=com
> > > objectclass: dcObject
> > > dc: lifetree
> > >
> > > and, The content of the file slapd.conf  is :
> > >
> > >
> > > database        ldbm
> > > suffix          "dc=lifetree,dc=com"
> >
> > You can't add your suffix, since it already exists. If this is just
> > the first entry you ar importing in the ldif file, either use "-c" in
> > your ldapadd, or remove the entry for dc=lifetree,dc=com from
> > your ldif file.
>
> Wrong, the suffix entry must be created just like any other entry, and it
> must be created before any other.
>
> This problem is most frequently caused by not creating the filesystem
> directory before starting. E.g., mkdir /var/MY-DB-DIR...
>
>   -- Howard Chu
>   Chief Architect, Symas Corp.       Director, Highland Sun
>   http://www.symas.com               http://highlandsun.com/hyc
>   Symas: Premier OpenSource Development and Support
>
>