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

Re: Troble adding jpegPhoto attribute



Chris Hills wrote:
Hi Christian

Thank you for your reply. When I try using ldap modify, I receive the
following:

modifying entry "..."
ldap_modify: Inappropriate matching
        additional info: modify: add values failed

Of course ... is a real entry :)

Regards,

Chris

----- Original Message ----- From: "Christian Pohl" <list-openldap-software@mail2news-gw.secaron.de>
To: <openldap-software@OpenLDAP.org>
Sent: Monday, February 03, 2003 6:45 AM
Subject: Re: Troble adding jpegPhoto attribute




Chris Hills wrote:

Hi

I am running OpenLDAP 2.0.25 on RedHat Linux 8.0. So far, it has been
running on 4 servers with replication without any problems. Today, I

decided

I would try and add a jpegPhoto attribute to an entry. When I tried, I
received the following error:

error code 18 - modify: add values failed

I have tried using both LDAP Browser/Editor and perl, and I receive the

same

error.

Can anyone offer any insight into this?

Regards,

Chris


Hi Chris,

0. errorcode 18 means
             inappropriateMatching    (18), -- unrecognized or
                                            -- inappropriate matching
                                            -- rule in sort key
   don't know how to interpret this :-(
1. Does the objectclass have the attribute 'jpegPhoto?
2. Have you tried it with a 'simple' ldif-file via ldapadd like
dn: cn=lalala,o=abc,c=DE
changetype: modify
add: jpegPhoto
jpegPhoto;binary:<file:///tmp/myphoto.jpg

Kind regards,

Chris

--
Christian Pohl
»|secaron

--
The From: and Reply-To: addresses are internal news2mail gateway

addresses.

Reply to the list or to Christian Pohl <pohl@secaron.de>


Hi Chris,

I tried it on my test-machine, and there was no problem.
I send you my config, perhaps this helps you.

openldap 2.1.12
slackware 8.1

slapd.conf
---snip---
include		/usr/etc/openldap/schema/core.schema
include 	/usr/etc/openldap/schema/cosine.schema
include 	/usr/etc/openldap/schema/inetorgperson.schema

pidfile		/usr/var/slapd.pid
argsfile	/usr/var/slapd.args

loglevel 256

#######################################################################

database        ldbm
suffix          "o=cpo"
rootdn          "cn=Manager,o=cpo"
rootpw          start
directory       /usr/var/openldap-data
index   objectClass     eq
---snap---

entry - ldif:
---snip---
dn: cn=test,o=cpo
objectclass: inetorgperson
cn: test
sn: test
---snap---

modify - ldif:
---snip---
dn: dn: cn=test,o=cpo
changetype: modify
add: jpegPhoto
jpegPhoto:<file:///root/photo.jpg

---snap---

Kind regards,

Chris

--
Christian Pohl
»|secaron

--
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to Christian Pohl <pohl@secaron.de>