[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: beginner questions
At 06:31 PM 7/12/00 +0200, Echaiguer Abderrahim wrote:
>You better use the command ldif2ldbm
>Check the man
Bad advice. You should use ldapadd(1) to add new entries.
ldif2ldbm(8) should only be used for recreating a directory
previously created via ldapadd(1).
See archives for details.
>At 05:04 PM 7/8/00 -0700, Gregg Carrier wrote:
>>Hi all, some real basic questions for anyone who is feeling kind and generous.
>>I've successfully installed OpenLdap on my Linux box and have gotten it
>>running. The tests and everything worked, and now I'm trying to add my first
>>data. I'm following the Wrox book _Proffessional Linux Deployment_ as my guide.
>>Basically, no matter what I seem to do, I get an error message from ldapadd
>>about my credentials being wrong. I tried to make the simplest ldif file I
>>could and to properly configure slapd.conf, but I am completely new to this
>>brave new world of directory servers. This is the simplest example I could come
>>up with, but I still get the "bad credentials" error message. Any help
>>straightening me out would be much appreciated.
>>
>>At the command line I type:
>>ldapadd -h localhost -p 389 -D "cn=root,dc=localhost" -W < ~/ldap/test.ldif
>>
>>password I enter is "secret" as configured in slapd.conf
>>
>>Here's test.ldif:
>>dn: dc=localhost
>>dc: localhost
>>o: localhost
>>objectclass: organization
>>objectclass: dcObject
>>
>>dn: cn=root, dc=localhost
>>cn: root
>>sn: root
>>objectclass: person
>>
>>And here's slapd.conf:
>>#
>># See slapd.conf(5) for details on configuration options.
>># This file should NOT be world readable.
>>#
>>include /usr/local/etc/openldap/slapd.at.conf
>>include /usr/local/etc/openldap/slapd.oc.conf
>>schemacheck off
>>#referral ldap://root.openldap.org/
>>
>>pidfile /usr/local/var/slapd.pid
>>argsfile /usr/local/var/slapd.args
>>
>>#######################################################################
>># ldbm database definitions
>>#######################################################################
>>
>>database ldbm
>>suffix "dc=localhost"
>>#suffix "o=My Organization Name, c=US"
>>rootdn "cn=root, dc=localhost"
>>#rootdn "cn=Manager, o=My Organization Name, c=US"
>>rootpw secret
>># cleartext passwords, especially for the rootdn, should
>># be avoid. See slapd.conf(5) for details.
>>directory /usr/tmp