[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: shema and ldapadd problem
> hi i suppose that i made a mistake because i tryed to use PHP3 script to
> manage my LDAP (in fact does any one can explain me easyly how ldap.conf
> work?)
> so after one day i try to use the command line ldapadd with LDIF file
> ...
>
> i have this message
> " ldapadd: no attributes to change or add (entry cn=dupont, o=essai,
> c=FR) "
>
> for this command
> ldapadd -D "cn=Manager, o=essai, c=FR" -W -f person.txt
>
Here would be your problem:
> here is my file:
> dn: cn=dupont, o=essai, c=FR
>
> sn: toto
>
> telephoneNumber: 0101010101
>
> objectclass: person
>
Blank lines are important in ldif files -- they indicate the end of
an entry. Take them out and you should be fine -- except that
"cn=dupont, o=essai, c=FR" doesn't match any suffix in your slapd.conf.
> suffix "dc=serval, dc=essai, dc=net"
> suffix "o=kelkoo, c=FR"
You will need to add a line like:
suffix "o=essai, c=FR"
Then you'll need to add the dn "o=essai, c=FR" before you can add the one
you have listed above.
> and my config files:
> ldap.conf:
> BASE dc=serval, dc=essai, dc=net
>
> HOST serval.essai.net serval localhost
> PORT 389
>
> #SIZELIMIT 12
> #TIMELIMIT 15
> #DEREF never
>
> sldap.conf:
> #
> # See slapd.conf(5) for details on configuration options.
> # This file should NOT be world readable.
> #
> include /etc/openldap/slapd.at.conf
> include /etc/openldap/slapd.oc.conf
> schemacheck off
> #referral ldap://127.0.0.1/
>
> pidfile /var/run/slapd.pid
> argsfile /var/run/slapd.args
>
> #######################################################################
> # ldbm database definitions
> #######################################################################
>
> database ldbm
> suffix "dc=serval, dc=essai, dc=net"
> suffix "o=kelkoo, c=FR"
> rootdn "cn=Manager, dc=serval, dc=essai, dc=net"
> rootdn "cn=Manager, o=essai, c=FR"
> rootpw secret
> # cleartext passwords, especially for the rootdn, should
> # be avoid. See slapd.conf(5) for details.
> directory /var/lib/ldap
>
> pliz help me...
>
> ps:where can i found outlook and netscape object shema?
>