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

Re: attributes with empty values



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


> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/05/+y7boE8xtIjURAnXuAKCyFqYgVrXzQe35gapTwO7Dv/TNkgCfbH9H
yRuoy3FSVAbhRaZx7lt/R94=
=Eb2L
-----END PGP SIGNATURE-----