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

Really confusing responses (was: Re: Can't slapadd ldif file)



OK, after a short vacation I'm back, and still having problems.

I deleted the database (/etc/init.d/openldap stop; rm /var/lib/ldap/*; /etc/init.d/openldap start), and try and add the simple record again:

# more example.ldif
dn: dc=example,dc=com,c=US
objectclass: organization
objectclass: top
o: example.com
# ldapadd -f example.ldif
ldap_sasl_interactive_bind_s: No such attribute
#

Ingo recommended I move the objectclass above the o, so I did, and while it seemed to work beefore, it doesn't work now (also thanks to Todd for having me change o= to dc= and split based on dot.)

Also, Yarry asked:

I'm jumping into the middle of the conversation here. Have you told us
which schema's you're including? grep the schema files for the objectclasses
and attributes in your ldif file and make sure you've included them.


# grep include /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

objectclass and o are both available in those files.

And just now I decided to restart ldap again and try again and I get:

# slapadd -f example.ldif
No databases found in config file

So now it doesn't work in a DIFFERENT way then before! WTF??

I'm running RedHat 7.3, latest updates, and these RPMs from Redhat:

openldap-devel-2.0.23-4
openldap-clients-2.0.23-4
nss_ldap-189-4
openldap-servers-2.0.23-4
openldap-2.0.23-4

I'm REALLY confused...

--
Phil Dibowitz                             phil@ipom.com
Freeware and Technical Pages              Insanity Palace of Metallica
http://home.earthlink.net/~jaymzh666/     http://www.ipom.com/

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
 - Benjamin Franklin, 1759