[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Newbie question: adding to database
I'm new at this, and have tried to find the info first before hitting this
list, if this is the right list, but I'm stuck. I've set up (on RH 7.2)
OpenLDAP 2.0.11 with Kerberos/SASL/SSL (thanks Turbo), and have created a
database via a file named newentry1, contents below. I can't seem to add any
additional entries with the exception of objectClass=top in a file called
newentry1a, contents below. I tried adding file newentry1b, with different
contents, and get the same error. Is there a specific order that I have to
add attributes and objectClasses in? The error I get is:
ldap_modify: Object class violation
additional info: missing required attribute
I also added a copy of my slapd.conf below. Any help would be appreciated.
Thanks -- John
Newentry1:
dn: dc=bhbtest,dc=com
objectClass: dcObject
objectClass: organization
o: Bhbtest Inc
dc: bhbtest
dn: cn=ldapadm,dc=bhbtest,dc=com
objectClass: organizationalRole
cn: ldapadm
description: LDAP Administrator
Newentry1a:
dn: cn=ldapadm,dc=bhbtest,dc=com
changetype: modify
add: objectClass
objectClass: top
Newentry1b:
dn: cn=ldapadm,dc=bhbtest,dc=com
changetype: modify
add: objectClass
objectClass: person
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/krb5-kdc.schema
include /etc/openldap/schema/samba.schema
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
schemacheck on
loglevel 2048
idletimeout 300
TLSCertificateFile /etc/openldap/server.pem
TLSCertificateKeyFile /etc/openldap/server.pem
sasl-realm BHBTEST.COM
sasl-host kerb1.bhbtest.com
database ldbm
#dbcachenowsync
readonly off
suffix "dc=bhbtest,dc=com"
directory /var/lib/ldap
lastmod on
rootdn "cn=ldapadm,dc=bhbtest,dc=com"
rootpw ldapadm
index default pres,eq
index objectClass,cn,uid eq
index mail eq
index uidNumber,gidNumber eq,pres
access to attr=cn,uid,sn,krbName,krb5PrincipalName
by dn="cn=administrator,dc=bhbtest,dc=com" write
by dn="uid=ldapadm.+\+realm=BHBTEST.COM" write
by self write
by * none
access to attr=userPassword
by dn="cn=administrator,dc=bhbtest,dc=com" write
by dn="uid=ldapadm.+\+realm=BHBTEST.COM" write
by anonymous auth
by * none
access to attr=mail,mailAlternateAddress,mailHost
by dn="cn=administrator,dc=bhbtest,dc=com" write
by dn="uid=ldapadm.+\+realm=BHBTEST.COM" write
by users read
by * none
access to attr=mailquota,trustModel,accessTo
by dn="cn=administrator,dc=bhbtest,dc=com" write
by dn="uid=ldapadm.+\+realm=BHBTEST.COM" write
by self read
by * none
access to *
by dn="cn=administrator,dc=bhbtest,dc=com" write
by dn="uid=ldapadm.+\+realm=BHBTEST.COM" write
by * read
#