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

Re: A little bit of help



OK, I did some basic installation, thanks for the links, but I'm having minor (hopefully) issues:
Running on Red Hat 7.3, openldap rpm 2.0.23-4
Slapd can be started ok.
Here is my slapd.conf:
include        /etc/openldap/schema/core.schema
include        /etc/openldap/schema/cosine.schema
include        /etc/openldap/schema/inetorgperson.schema
####################################################################
# ldbm database definitions
####################################################################
database    ldbm
suffix        "o=blg"
suffix        "dc=websense,dc=blg,dc=org"
rootdn        "cn=ldapadmin,o=blg"
rootpw        secret1
directory    /var/lib/ldap/blg
defaultaccess   read
schemacheck     on
lastmod         on
index   cn,sn,st                pres,eq,sub

Here is my very basic ldif file (blg.ldif, located in the same directory as slapd.conf (/etc/openldap)
dn: dc=websense,dc=blg,dc=org
objectClass: top
objectClass: dcObject
objectClass: organization
dc: blg
o: blg
description: Big Log Group

dn: o=blg
objectClass: top
objectClass: organization
o: blg
description: Big Log Group

Next thing I do after ldap started is to issue the command:
ldapadd -f blg.ldif -xv -D "cn=ldapadmin,o=blg" -W
...and it gives me the following error:
add objectClass:
        top
        dcObject
        organization
add dc:
        blg
add o:
        blg
add description:
        Big Log Group
adding new entry "dc=websense,dc=blg,dc=org"
ldap_add: Operations error
ldif_record() = 1

Another debugging info:
According to the tutprial:
 - after I issue ldapadd I should issue slapdd -l blg.ldif -v (which I did, and I got the following output:
# added: "dc=websense,dc=blg,dc=org" (00000001)
    added: "o=blg"   (00000002)
I restarted ldap and tried to do ldapadd -f blg.ldif -xv -D "cn=ldapadmin,o=blg" -W
but it gave the same error.

Could you please tell me what's wrong with the things I'm doing?
Thank you.








Syahrul Sazli Shaharir wrote:
On Thu, 3 Oct 2002, ezJoe wrote:

  
Are newbie question simply ignored in this respectable forum?
    

Perhaps we missed you the first time.. let me try to help.

  
 I've setup openLDAp from rpm. I was trying to find some normal docs
on the web but unfortunately couldn't find any good one.
      

Try:-
LDAP Service step-by-step - http://www.aplawrence.com/Unixart/ldap.html
LDAP Tutorial for Linux -
http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP.html
LDAP HOWTO -
http://www.linuxdoc.org/HOWTO/LDAP-Implementation-HOWTO/index.html

  
Hence, stupid questions:
slapd is up and running but when I open any admnstration utility it
can connect to the ldap server but cannot see base structure.
      

What utility do you use, and what exactly do you see after connecting?

  
So my question is:
After installing openldap and configuring slapd.conf-are there any
steps involved,like creating a ldif file that desribes the ldap
structure?
      

Yes:-
1. Create LDIF file (see numerous examples in URLs above), starting with
   base of tree.
2. slapadd -f ./ldif_file, then start slapd.

All set.

--sazli
cd /open/source; make world
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x06D4113E
Key fingerprint = 0776 CC02 2C3F C0FF 7312  0C3E 0593 AF64 06D4 113E

  

--
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/