I've define my own schema(couple of classes and attributes).... it looks like below... ---------------------------------------------------------------
attributetype ( 2.5.4.73 NAME 'epType' SUP name )
attributetype ( 2.5.4.74 NAME 'agencyIcon' SUP jpegPhoto )
objectClass ( 2.5.6.24 NAME 'mlnkEp' DESC 'Object for end point' STRUCTURAL MUST ( epType ) objectClass ( 2.5.6.25 NAME 'agencyObject' DESC 'Object that extends organizationalUnit' SUP organizationalUnit STRUCTURAL MAY (agencyIcon) )
------------------------------------------------------------
I want to store icon file in agencyIcon attribute... So I added below line for agencyIcon in ldif file .........
agencyIcon;binary: < file:///root/jbuilder.ico
When I execute command:
slapadd -l init.ldif
I get error as.....
<= str2entry: str2ad(version): attribute type undefined slapadd: could not parse entry (line=8)
When I use ldapadd/ldapmodify I get following error
ldap_add: Undefined attribute type (17) additional info: agencyIcon;binary: option "binary" not supported with type
I also tried adding below line at the top of ldif file I also tried changing version number as 1,2,3
version: 1
I searched on google but found nothing... I am working on Cent-OS. And openldap version is 2.3.27
Help me
Regards Ashish
Best Jokes, Best Friends, Best Food and more. Go to http://in.promos.yahoo.com/groups/bestofyahoo/
ashish mahamuni ashitpro@yahoo.co.in writes:
I've define my own schema(couple of classes and attributes).... it looks like below...
attributetype ( 2.5.4.73 NAME 'epType' SUP name )
attributetype ( 2.5.4.74 NAME 'agencyIcon' SUP jpegPhoto )
[...]
I want to store icon file in agencyIcon attribute... So I added below line for agencyIcon in ldif file .........
agencyIcon;binary: < file:///root/jbuilder.ico
When I execute command:
slapadd -l init.ldif
I get error as.....
<= str2entry: str2ad(version): attribute type undefined slapadd: could not parse entry (line=8)
When I use ldapadd/ldapmodify I get following error
ldap_add: Undefined attribute type (17) additional info: agencyIcon;binary: option "binary" not supported with type
Your attribute type agencyIcon inherites syntax from attribute type jpegPhoto, thus the binary extension is invalid.
-Dieter
--- On Sat, 28/6/08, Dieter Kluenter dieter@dkluenter.de wrote:
From: Dieter Kluenter dieter@dkluenter.de Subject: Re: Problem while inserting binary data.... To: openldap-technical@openldap.org Date: Saturday, 28 June, 2008, 1:03 PM ashish mahamuni ashitpro@yahoo.co.in writes:
I've define my own schema(couple of classes and
attributes)....
it looks like below...
attributetype ( 2.5.4.73 NAME 'epType' SUP name )
attributetype ( 2.5.4.74 NAME 'agencyIcon' SUP jpegPhoto )
[...]
I want to store icon file in agencyIcon attribute... So I added below line for agencyIcon in ldif file
.........
agencyIcon;binary: < file:///root/jbuilder.ico
When I execute command:
slapadd -l init.ldif
I get error as.....
<= str2entry: str2ad(version): attribute type
undefined
slapadd: could not parse entry (line=8)
When I use ldapadd/ldapmodify I get following error
ldap_add: Undefined attribute type (17) additional info: agencyIcon;binary: option
"binary" not supported with type
Your attribute type agencyIcon inherites syntax from attribute type jpegPhoto, thus the binary extension is invalid.
-Dieter
-- Dieter Klünter | Systemberatung http://www.dkluenter.de GPG Key ID:8EF7B6C6
I also tried using following syntax for my attribute, instead of inheriting from jpegPhoto....But I got same error...
SYNTAX 1.3.6.1.4.1.1466.115.121.1.5
Is this syntax right for my attribute?
Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/
ashish mahamuni wrote:
--- On Sat, 28/6/08, Dieter Kluenter dieter@dkluenter.de wrote:
ashish mahamuni ashitpro@yahoo.co.in writes:
attributetype ( 2.5.4.74 NAME 'agencyIcon' SUP jpegPhoto )
[...]
I want to store icon file in agencyIcon attribute... So I added below line for agencyIcon in ldif file
.........
agencyIcon;binary: < file:///root/jbuilder.ico When I execute command: slapadd -l init.ldif I get error as..... <= str2entry: str2ad(version): attribute type
undefined
slapadd: could not parse entry (line=8)
When I use ldapadd/ldapmodify I get following error
ldap_add: Undefined attribute type (17) additional info: agencyIcon;binary: option
"binary" not supported with type
Your attribute type agencyIcon inherites syntax from attribute type jpegPhoto, thus the binary extension is invalid.
I also tried using following syntax for my attribute, instead of inheriting from jpegPhoto....
Did you actually read what Dieter wrote? The error message simply means what it says. Simple leave away transfer type ;binary. Use instead:
agencyIcon: < file:///root/jbuilder.ico
Ciao, Michael.
ashish mahamuni ashitpro@yahoo.co.in writes:
--- On Sat, 28/6/08, Dieter Kluenter dieter@dkluenter.de wrote:
From: Dieter Kluenter dieter@dkluenter.de Subject: Re: Problem while inserting binary data.... To: openldap-technical@openldap.org Date: Saturday, 28 June, 2008, 1:03 PM ashish mahamuni ashitpro@yahoo.co.in writes:
I've define my own schema(couple of classes and
attributes)....
it looks like below...
attributetype ( 2.5.4.73 NAME 'epType' SUP name )
attributetype ( 2.5.4.74 NAME 'agencyIcon' SUP jpegPhoto )
[...]
I want to store icon file in agencyIcon attribute... So I added below line for agencyIcon in ldif file
.........
agencyIcon;binary: < file:///root/jbuilder.ico
When I execute command:
slapadd -l init.ldif
I get error as.....
<= str2entry: str2ad(version): attribute type
undefined
slapadd: could not parse entry (line=8)
When I use ldapadd/ldapmodify I get following error
ldap_add: Undefined attribute type (17) additional info: agencyIcon;binary: option
"binary" not supported with type
Your attribute type agencyIcon inherites syntax from attribute type jpegPhoto, thus the binary extension is invalid.
I also tried using following syntax for my attribute, instead of inheriting from jpegPhoto....But I got same error...
SYNTAX 1.3.6.1.4.1.1466.115.121.1.5
Is this syntax right for my attribute?
This depends of the datatype of your icon, see RFC 4517,3.3 on more information on sytaxes.
-Dieter
ashish mahamuni ashitpro@yahoo.co.in writes:
--- On Sat, 28/6/08, Dieter Kluenter dieter@dkluenter.de wrote:
From: Dieter Kluenter dieter@dkluenter.de Subject: Re: Problem while inserting binary data.... To: openldap-technical@openldap.org Date: Saturday, 28 June, 2008, 1:03 PM ashish mahamuni ashitpro@yahoo.co.in writes:
I've define my own schema(couple of classes and
attributes)....
it looks like below...
attributetype ( 2.5.4.73 NAME 'epType' SUP name )
attributetype ( 2.5.4.74 NAME 'agencyIcon' SUP jpegPhoto )
[...]
I want to store icon file in agencyIcon attribute... So I added below line for agencyIcon in ldif file
[...]
I also tried using following syntax for my attribute, instead of inheriting from jpegPhoto....But I got same error...
SYNTAX 1.3.6.1.4.1.1466.115.121.1.5
Is this syntax right for my attribute?
binary syntax is obsolete, see rfc-4522
Dieter
openldap-technical@openldap.org