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

RE: Ldap modify error !



Or if you want to use ldapmodify, you need to declare that its an add in
ldif format.  Read the RFC on ldif format, its pretty helpful and gives
some examples.

http://www.ietf.org/rfc/rfc2849.txt

Here is an example.

dn: dc=rocs,dc=ro
changetype: add
objectClass: dcObject
objectClass: organization
dc: rocs
o: ROCS Corporation
description: The ROCS Corporation



On Mon, 13 Dec 2004, Thomas Campbell wrote:

> I'm not exactly an expert but you said that you were trying to add an entry not modify one.  You would use ldapadd not ldapmodify
> for that.
>
> Thomas
>
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Cristi Tudose
> Sent: Sunday, December 12, 2004 11:32 PM
> To: openldap-software@OpenLDAP.org
> Subject: Ldap modify error !
>
>
>    Hi all ...
>
> I'm new to OpenLDAP. I have read the documentation, but i don't know how
> to resolv this beginner problem.
>
> I have instaled the OpenLDAP from ports. I use FreeBSD 4.10.
> i have modify the slapd.conf .. :
>
> ### slapd.conf
> include         /usr/local/etc/openldap/schema/core.schema
> pidfile         /var/run/openldap/slapd.pid
> argsfile        /var/run/openldap/slapd.args
> defaultaccess read
>
> access to *
>    by self write
>    by * read
>
>
> #######################################################################
> # BDB database definitions
> #######################################################################
>
> database        ldbm
> suffix          "dc=rocs,dc=ro"
> rootdn          "cn=root,dc=rocs,dc=ro"
> # Cleartext passwords, especially for the rootdn, should
> # be avoid.  See slappasswd(8) and slapd.conf(5) for details.
> # Use of strong authentication encouraged.
> #rootpw         secret
> rootpw          {CRYPT}/SxOqDrIx3fzs
> # The database directory MUST exist prior to running slapd AND
> # should only be accessible by the slapd and slap tools.
> # Mode 700 recommended.
> directory       /var/db/openldap-data
> # Indices to maintain
> index   cn,sn,uid pres,eq,approx,sub
> index   objectClass     eq
>
>
> when i try to add an entry in ldap, i recive this error !
>
> #### test.ldif ####
> su-2.05b# cat test.ldif
> dn: dc=rocs,dc=ro
> objectClass: dcObject
> objectClass: organization
> dc: rocs
> o: ROCS Corporation
> description: The ROCS Corporation
>
>
> bash# ldapmodify -r -D 'cn=root,dc=rocs,dc=ro' -W < test.ldif
> modifying entry "dc=rocs,dc=ro"
> ldap_modify: No such object (32)
>
> I have try the luma utility ... but i recive another error when i try to
> browse the ldap ...
>
> Error during LDAP search request
> Reason: {'info': '', 'desc': 'No such object'}
>
> Plese tell me what i do wrong ?
> Thanks
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004
>