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

slapadd: line 6: database



 Hello,
This is my third time around with a fresh install of mandriva 2006. I am
having trouble with slapd.conf I know which line it does not like, but dont
know what it really wants there. I have included the error message as well
as my slapd.conf

any help would be greatly appreciated!


Error....
[root@mdk openldap]# /usr/local/openldap/sbin/slapadd -l
/usr/local/openxchange/share/init_ldap.ldif
/usr/local/openldap/etc/openldap/slapd.conf: line 92: expecting <access> got
"writest"

I FIXED LINE 92 BY CHANGING IT TO WRITE

then got...

 Thank you! I change it and it read that line fine, then it hit this error..


/usr/local/openldap/etc/openldap/slapd.conf: line 97: expecting <access> got
"authexit"

I CHANGED "AUTHEXIT" TO "AUTH", now i am getting this error...

[root@mdk openldap]# /usr/local/openldap/sbin/slapadd -l
/usr/local/openxchange/share/init_ldap.ldif
slapadd: line 6: database (dc=my-domain,dc=com) not configured to hold
"dc=tux,dc=st"
slapadd: line 6: database (dc=my-domain,dc=com) not configured to hold
"dc=tux,dc=st"

would that be a problem with my rootdn?

Thanks!!

slapd.conf....

[root@mdk openldap]# cat /usr/local/openldap/etc/openldap/slapd.conf

include         /usr/local/openldap/etc/openldap/schema/core.schema

pidfile         /usr/local/openldap/var/run/slapd.pid
argsfile        /usr/local/openldap/var/run/slapd.args

database        bdb
suffix          "dc=my-domain,dc=com"
rootdn          "cn=Manager,dc=my-domain,dc=com"

rootpw          secret
directory       /usr/local/openldap/var/openldap-data
# Indices to maintain
index   objectClass     eq

#include         /usr/local/openldap/etc/openldap/schema/core.schema
include         /usr/local/openldap/etc/openldap/schema/cosine.schema
include         /usr/local/openldap/etc/openldap/schema/nis.schema
include         /usr/local/openldap/etc/openldap/schema/inetorgperson.schema
include         /usr/local/openxchange/share/openxchange.schema

#pidfile
/usr/local/openldap/var/run/slapd.pid

#argsfile        /usr/local/openldap/var/run/slapd.args

database        bdb
suffix          "dc=tux,dc=st"
rootdn          "cn=admin,dc=tux,dc=st"
rootpw          secret

directory       /usr/local/openldap/var/openldap-data

index objectClass eq
index
uid,mailEnabled,cn,sn,givenname,lnetMailAccess,alias,loginDestination eq,sub
index   memberUid eq

access to dn.subtree="ou=Users,ou=OxObjects,dc=tux,dc=st"
 by self write
 by users write
 by anonymous auth

access to dn.subtree="ou=Groups,ou=OxObjects,dc=tux,dc=st"
 by self write
 by users write
 by anonymous auth[root@mdk openldap]#