vk  

AW: Install Problems

Peter Kehl
Sun, 29 Sep 2002 17:14:38 -0700

Hi Raju,

I looked at the files you said, but I didn´t find the error.
Do you have an idea? :-)


Command line:

[root@serv1 vk]# slapadd -b dc=rchost,dc=trxadmin,dc=de -l MYLDIF

........................................................................
....

Here are the complete files:

sldap.conf

........................................................................
....

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20
23:32:43 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
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
include         /etc/openldap/schema/kandalaya.schema

schemacheck     off

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "dc=rhost,dc=trxadmin,dc=de"
rootdn "cn=manager,dc=rhost,dc=trxadmin,dc=de"
directory       /var/lib/ldap
lastmod         on
# Indices to maintain
index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname                       eq,subinitial

#
# ACL's for VishwaKarma
#
access to
       dn="cn=manager,dc=rhost,dc=trxadmin,dc=de"
 
attr=entry,notifydomainaddemail,notifydomainaddlist,notifydomaindeleteem
ail,notifydomaindeletelist,notifydomainmodifyemail,notifydomainownerchan
geemail,notifyresellerchangeemail,notifyresellercreatedomain,notifyresel
lerdeletedomain,notifyresellermodifydomain,notifyuserchangedelivery,noti
fyuserchangepassword,notifyuserchangeemail,objectclass,cn,mail
        by users read
        by dn="cn=manager,dc=rhost,dc=trxadmin,dc=de" write
        by * none
access to
       dn="^reseller=(.*),dc=rhost,dc=trxadmin,dc=de"
 
attr=entry,notifydomainaddemail,notifydomainaddlist,notifydomaindeleteem
ail,notifydomaindeletelist,notifydomainmodifyemail,notifydomainownerchan
geemail,notifyuserchangedelivery,notifyuserchangepassword,notifyuserchan
geemail,objectclass,cn,mail
        by self write
        by dn=".*,reseller=$1,dc=rhost,dc=trxadmin,dc=de" read
        by dn=".*,type=HostMap,dc=rhost,dc=trxadmin,dc=de" read
        by dn="cn=manager,dc=rhost,dc=trxadmin,dc=de" write
        by * none
access to
       dn="^rhost=(.*),reseller=(.*),dc=rhost,dc=trxadmin,dc=de"
 
attr=entry,notifyuserchangedelivery,notifyuserchangepassword,notifyuserc
hangeemail,objectclass,cn,mail
        by self write
        by dn=".*,rhost=$1,reseller=$2,dc=rhost,dc=trxadmin,dc=de" read
        by dn="rhost=$1,type=HostMap,dc=rhost,dc=trxadmin,dc=de" read
        by dn="reseller=$2,dc=rhost,dc=trxadmin,dc=de" write
        by dn="cn=manager,dc=rhost,dc=trxadmin,dc=de" write
        by * none
access to dn="^reseller=(.*),dc=rhost,dc=trxadmin,dc=de"
        by dn="reseller=$1,dc=rhost,dc=trxadmin,dc=de" write
        by anonymous auth
        by * none
access to dn="^rhost=.*,reseller=(.*),dc=rhost,dc=trxadmin,dc=de"
        by dn="reseller=$1,dc=rhost,dc=trxadmin,dc=de" write
        by anonymous auth
        by * none
access to dn="^rhost=.*,type=hostMap,dc=rhost,dc=trxadmin,dc=de"
        by * read
access to dn="type=hostMap,dc=rhost,dc=trxadmin,dc=de"
        by dn="reseller=.*,dc=rhost,dc=trxadmin,dc=de" write
        by anonymous auth
        by * none
access to
dn="^user=.*,rhost=(.*),reseller=(.*),dc=rhost,dc=trxadmin,dc=de"
        by self write
        by dn="rhost=$1,reseller=$2,dc=rhost,dc=trxadmin,dc=de" write
        by dn="reseller=$2,dc=rhost,dc=trxadmin,dc=de" write
        by anonymous auth
        by * none
access to dn=".*"
        by dn="cn=manager,dc=rhost,dc=trxadmin,dc=de" write
        by anonymous auth
        by * none


rootpw secret


........................................................................
....

MYLDIF:
........................................................................
....


dn: dc=rhost,dc=trxadmin,dc=de
dc: rhost
objectClass: top
objectClass: domain

dn: type=hostMap,dc=rhost,dc=trxadmin,dc=de
dc: hostMap
objectClass: top
objectClass: hostMap

dn: cn=manager,dc=rhost,dc=trxadmin,dc=de
cn: manager
sn: manager
objectclass: top
objectclass: person
userPassword: {crypt}$1$DBAmpwOq$EzxV8BznoKrshaDYXLq4h0

........................................................................
....







-----Ursprüngliche Nachricht-----
Von: Raju Mathur [mailto:[EMAIL PROTECTED]] 
Gesendet: Freitag, 27. September 2002 20:05
An: [EMAIL PROTECTED]
Betreff: AW: Install Problems

Hi Peter,

This basically indicates an incompatibility between the top-level DN's
you use in slapd.conf, MYLDIF and the command line.  You must make
sure that if you use dc=rhost,dc=trxonline,dc=de at one place you use
exactly that DN at other places too; for instance, you cannot use
dc=rhost,dc=trxonline,dc=de in MYLDIF and
dc=hostname,dc=trxonline,dc=de or dc=trxonline,dc=de in slapd.conf or
on the command line.

Regards,

-- Raju

>>>>> "Peter" == Peter Kehl <[EMAIL PROTECTED]> writes:

    Peter> Hi Raju, it´s me one time more :-)

    Peter> I am not able to find out my mistake. Can you help me,
    Peter> please?

    Peter> How can I create a backend?

    Peter> Sincerley Yours Peter

    Peter> -----Ursprüngliche Nachricht----- Von: Peter Kehl
    Peter> [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag,
    Peter> 26. September 2002 15:02 An: [EMAIL PROTECTED] Betreff: AW:
    Peter> Install Problems

    Peter> And when i am typing

    Peter> slapadd -b dc=rchost,dc=trxonline,dc=de -l MYLDIF slapadd:
    Peter> slap_init no backend for "dc=rchost,dc=trxonline,dc=de"






-- 
Raju Mathur               [EMAIL PROTECTED]      http://kandalaya.org/
                      It is the mind that moves