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

Re: attributes with empty values



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



I made a mistake.

I changed the schema but did't put it in the directory that ldap reads.

Sorry about that. OctetString does accept empty values without problem.

It seems then that IA5string' syntax does not allow for empty values.

I couldn't find a specification for IA5 string. In some rfc it says 'it's the 
representation of the string itself' but doesn't list what form the string 
may have.

Sorry to bother you with this. 

A_ce


> > Whether a value can be zero-length depends on the underlying
> > syntax definition.  DirectoryString values must not be
> > zero-length.  OctetString values may be zero-length.
>
> I changed the schema to be:
>
> attributetype ( 1.3.6.1.4.1.7914.1.2.1.7 NAME 'mailForwardingAddress'
> 	DESC 'Address(es) to forward all incoming messages to.'
> 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{256} )
>
> As I believe, 1.3.6.1.4.1.1466.115.121.1.40 us the syntax for octetstring.
>
> A tiny ldif file I use looks like this:
>
> dn: something
> cn: asdfasdf
> mail: ace@suares.nl
> uid: asdfasdf@keycomp.an
> objectClass: qwidoQmailUser
> userPassword:: YXNkZmFzZGZhc2Q=
> mailForwardingAddress:
> mailReplyText: sdfasd
> qwidoStatus: active
>
> doing
>
> ldapadd -xv  -h localhost:389 -D "root" -w xxx -f ldaptest
>
> yields
>
> ldap_add: Invalid syntax (21)
>         additional info: mailForwardingAddress: value #0 invalid per syntax
>
>
> Googling for 'value #0 invalid per syntax' results in many questions about
> this error, but not anyone with an answer (apart from deleting the
> attribute or filling in some value, which is a wee bit too obvious).
>
> I am in the dark here.
>
> - you say octetstring may be empty
> - I tested with what I believe is octetstring
> - the error persists.
>
> Should I file an ITS ?
>
> _Ace
>
> website: http://www.suares.nl * http://www.qwikzite.nl

- -- 
Ace Suares' Internet Consultancy
NIEUW ADRES: Postbus 2599, 4800 CN Breda
telefoon: 06-244 33 608
fax en voicemail: 0848-707 705
website: http://www.suares.nl * http://www.qwikzite.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/0+KFy7boE8xtIjURAjJdAJ0XP1sa4Dm5y9scgyEHs4loiLM1egCfYims
i9PXGuiGyBrmJ/GXG6cKilY=
=D9Z8
-----END PGP SIGNATURE-----