directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: [studio] syntax for gmt ldif import wrong?
Date Wed, 09 Jan 2008 07:23:44 GMT
Torgeir Veimo wrote:
> I'm trying to import some LDAP stuff into apache DS using Studio, when 
> it (Studio or ADS) chokes on the syntax of a generalizedTime 
> attribute. The value is 19950000000000Z which I belive is correct. 
> Part of the stacktrace is below. Am I doing something wrong or is this 
> a bug in Studio / ADS?
>
> #!RESULT ERROR
> #!CONNECTION ldap://localhost:10389
> #!DATE 2008-01-09T12:15:56.405
> #!ERROR [LDAP: error code 21 - failed to add entry 
> uid=n1008,ou=people,dc=ntnu,dc=org: Attribute value '19950000000000Z' 
> for attribute 'epdedustudystartyear' is syntactically incorrect: 
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeValueException: 
> Attribute value '19950000000000Z' for attribute 'epdedustudystartyear' 
> is syntactically incorrect
>      at 
> org.apache.directory.server.core.schema.SchemaService.assertSyntaxes(SchemaService.java:2001)

>

As far as I checked, 19950000000000Z is not valid :

 * From RFC 4517 :
 * GeneralizedTime = century year month day hour
 *                          [ minute [ second / leap-second ] ]
 *                          [ fraction ]
 *                          g-time-zone
 *
 * century = 2(%x30-39)            ; "00" to "99"
 * year    = 2(%x30-39)            ; "00" to "99"
 * month   = ( %x30 %x31-39 )      ; "01" (January) to "09"
 *           | ( %x31 %x30-32 )    ; "10" to "12"
 * day     = ( %x30 %x31-39 )      ; "01" to "09"
 *           | ( %x31-32 %x30-39 ) ; "10" to "29"
 *           | ( %x33 %x30-31 )    ; "30" to "31"
 * hour    = ( %x30-31 %x30-39 )
 *           | ( %x32 %x30-33 )    ; "00" to "23"
 * minute  = %x30-35 %x30-39       ; "00" to "59"
 *
 * second  = ( %x30-35 %x30-39 )   ; "00" to "59"
 * leap-second = ( %x36 %x30 )     ; "60"
 *
 * fraction = ( DOT / COMMA ) 1*(%x30-39)
 * g-time-zone = %x5A              ; "Z"
 *               | g-differential
 * g-differential = ( MINUS / PLUS ) hour [ minute ]
 * MINUS   = %x2D  ; minus sign ("-")

As you can see, the month, day and hour should be something different 
from 00
>
> --Torgeir Veimo
> torgeir@pobox.com
>
>
>
>


-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message