[Date Prev][Date Next]
Re: Really confusing responses (was: Re: Can't slapadd ldif file)
On Mon, 2 Dec 2002, Phil Dibowitz wrote:
> 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
You proly want to do 'ldapadd -x -f example.ldif'.
> 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
> 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
This command tells slapadd to use example.ldif as a configuration file,
normally slapd.conf. Try 'slapadd -l example.ldif'
> 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:
> I'm REALLY confused...