[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ldap
Subject:    [ldap] Re: Rehat 8.0, openLdap install: No ldap database ?
From:       Michael Oberdorf <Michael.Oberdorf () gmx ! de>
Date:       2002-11-18 8:06:37
[Download RAW message or body]

Hello Bill,

> Incidentally, how does one specify where openldap puts its
> logging output?

In the syslog.

> The main problem I'm having is that I cannot create any entries
> in the directory, and the backend ldbm database seems to be 
> absent. Various items of evidence that might reveal my error 
> follow.

You have to configure your Root suffix in the slapd.conf and the "Directory
Manager" with its Password.

1st step after installation and configuration is that you add the root entry
and the "Directory Manager" Objekt to the ldap. Look in the openldap
administration guide chapter 7.1
(http://www.openldap.org/doc/admin21/guide.html#Creating%20a%20database%20over%20LDAP)
 how to do this.



> dn: cn=dirmgr, dc=wynnon, dc=com
> cn: dirmgr
> sn: dirmgr
> objectclass: person


The "Directory Manager" has look like:


        dn: cn=dirmgr, dc=wynnon, dc=com
        objectClass: organizationalRole
        cn: dirmgr
        description: Directory Manager




Michael Oberdorf

> 
> I'm new to ldap, and any suggestions or redirection to 
> relevant docs will be appreciated.
> 
> Bill.
> 
> <evidence>-------------
> [root@wynserv root]# service ldap restart
> Stopping slapd: /etc/init.d/ldap: line 196: kill: (2859) - No such
> process
> /etc/init.d/ldap: line 196: kill: (2858) - No such process
> /etc/init.d/ldap: line 196: kill: (2854) - No such process
> [  OK  ]
> Starting slapd:                                            [  OK  ]
> [root@wynserv root]#
> </evidence>-------------
> 
> 
> 
> Also, ldapadd and ldapsearch both fail as follows:
> 
> <evidence>-------------
> [root@wynserv root]# ldapadd -vD "cn-dirmgr dc-wynnon dc-com" -f
> /etc/openldap/initial.ldif
> ldap_initialize( <DEFAULT> )
> ldap_sasl_interactive_bind_s: No such attribute
> [root@wynserv root]#
> </evidence>-------------
> 
> 
> 
> 
> Also, slapcat fails as follows:
> 
> <evidence>-------------
> [root@wynserv root]# slapcat
> slapcat: could not open database.
> [root@wynserv root]#
> 
> <file /etc/openldap/ldap.conf>
> HOST 127.0.0.1
> BASE dc=wynnon,dc=com
> </file>
> 
> <file /etc/openldap/slapd.conf>
> include  /etc/openldap/schema/core.schema
> include  /etc/openldap/schema/cosine.schema
> include  /etc/openldap/schema/inetorgperson.schema
> include  /etc/openldap/schema/nis.schema
> include  /etc/openldap/schema/redhat/rfc822-MailMember.schema
> include  /etc/openldap/schema/redhat/autofs.schema
> include  /etc/openldap/schema/redhat/kerberosobject.schema
> loglevel 256
> 
> database ldbm
> suffix  "dc=wynnon,dc=com"
> rootdn  "cn=dirmgr,dc=wynnon,dc=com"
> directory /var/lib/ldap
> index  objectClass,uid,uidNumber,gidNumber,memberUid eq
> index  cn,mail,surname,givenname   eq,subinitial
> </file>
> 
> <directory /var/lib/ldap>
> This directory is empty. I expected the backend
> ldbm database to be situated here.
> </directory>
> 
> <file /etc/openldap/initial.ldif>
> dn: dc=wynnon, dc=com
> dc: wynnon
> o: Wynnon Inc
> objectclass: organization
> objectclass: dcObject
> 
> dn: cn=dirmgr, dc=wynnon, dc=com
> cn: dirmgr
> sn: dirmgr
> objectclass: person
> </file>
> 
> </evidence>-------------
> 
> 
> 
> 
> ---
> You are currently subscribed to ldap@umich.edu as:
> [Michael.Oberdorf@gmx.de]
> To unsubscribe send email to ldap-request@umich.edu with the word
> UNSUBSCRIBE as the SUBJECT of the message.
> 


---
You are currently subscribed to ldap@umich.edu as: [ldap@progressive-comp.com]
To unsubscribe send email to ldap-request@umich.edu with the word UNSUBSCRIBE as the \
SUBJECT of the message.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic