directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject Re: import of empty attributes fails
Date Fri, 02 May 2008 06:43:43 GMT
Hi Torgeir,

Syntax 1.3.6.1.4.1.1466.115.121.1.15 is 'Directory String', and
according to RFC 4517 an empty string is not allowed for 'Directory String'.

See http://tools.ietf.org/html/rfc4517, section 3.3.6:
-------------------------------------------------------
3.3.6. Directory String

   A value of the Directory String syntax is a string of one or more
   arbitrary characters from the Universal Character Set (UCS) [UCS].  A
   zero-length character string is not permitted. ...

-------------------------------------------------------

Greetings from Munich,
Stefan Seelmann



Torgeir Veimo schrieb:
> I'm using apache ds 1.5.2 on osx / jdk 1.6.
> 
> I get an error like
> 
> #!RESULT ERROR
> #!CONNECTION ldap://localhost:10389
> #!DATE 2008-05-02T15:39:14.166
> #!ERROR [LDAP: error code 21 - failed to add entry
> uid=s9817798,ou=people,dc=bi,dc=org: Attribute value '' for attribute
>  'epdprofemailaddress' is syntactically incorrect]
> dn: uid=s9817798,ou=people,dc=bi,dc=org
> [...]
> epdprofcompanyname: Nopal AS
> epdprofemailaddress:
> epdproffieldofemployment: Salg
> [...]
> 
> epdprofemailaddress is in the schema as
> 
> dn: m-oid=1.3.6.1.4.1.8219.2.155, ou=attributeTypes, cn=netenviron,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8219.2.155
> m-name: epdprofemailaddress
> m-equality: caseIgnoreMatch
> m-syntax: 1.3.6.1.4.1.1466.115.121.1.15
> 
> Shouldn't this allow the attribute to be present, but empty?
> 


Mime
View raw message