directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject Re: Sligthly modified version of the [Modification on shared LDAPDN...] mail
Date Mon, 04 Jan 2010 11:39:01 GMT
Thanks Emmanuel for this summary.

Emmanuel Lecharny schrieb:
> I have made a few mistakes in my previous mail. Here is a fixed version 
> of the expected values.
> 
> Note that I have added a escaped trailing space to the second AVA.
> 
> I have fixed the following errors :
> - replaced CN by OU, as the OID is incorrect otherwise
> - AVA's upValue does not have useless heading and trailing spaces
> 
> <DN> ::= (<RDN> ((',' | ';') <RDN>)*)+
> <RDN> ::= <AVA> ('+' <AVA>)*
> <AVA> ::= AT '=' <value>
> 
> DN :
> upName : the initial DN (escaped String)
> normName : the normalized DN (escaped String)
> 
> RDN :
> upName : The initial RDN, with heading and trailing spaces (escaped String)
> normName : The normalized RDN, trimmed (escaped String)
> 
> AVA :
> upName : The initial AVA, with heading and trailing spaces (escaped String)
> normName : The normalized AVA, trimmed (escaped String)
> upType : The initial type, trimmed
> normType : the normalized type
> upValue : the initial value, trimmed, no escaped chars
> normValue : the normalized value, no escaped chars
> 
> DN = "  OU  =  Ex\\+mple + ou = T\\+ST\  ,  ou  =  COM "
>      0         1        2         3         4
>      01234567890123457890123456789012345678901234567
> 
> OU normalized := 2.5.4.11
> 
> DN (0..47):
> upName (0..47):= "  OU  =  Ex\\+mple + ou = T\\+ST\  ,  ou  =  COM "
> normName := "2.5.4.11=ex\+mple+2.5.4.11=t\+st\ ,2.5.4.11=com"
> 
> RDN 1 (0..33) :
> upName (0..33): "  OU  =  Ex\\+mple + ou = T\\+ST\  "
> normName : "2.5.4.11=ex\+mple+2.5.4.11=t\+st\ "
> 
> RDN 2 (35..47) :
> upName (35..47): "  ou  =  COM "
> normName : "2.5.4.11=com"
> 
> AVA 1-1 (0..19) :
> upName (0..19): "  OU  =  Ex\\+mple "
> normName : "2.5.4.11=ex\\+mple"
> upType (2..3): "OU"
> normType : "2.5.4.11"
> upValue (7..19): "Ex+mple"
> normValue : "ex+mple"
> 
> AVA 1-2 (21..33) :
> upName (21..33): " ou = T\\+ST\  "
> normName : "2.5.4.11=t\\+st\ "
> upType (22..23): "ou"
> normType : "2.5.4.11"
> upValue (26..33):  "T+ST "
> normValue : "t+st "
> 
> AVA 2 (35..47) :
> upName (35..47): "  ou  =  COM "
> normName : "2.5.4.11=com"
> upType (37..38): "ou"
> normType : "2.5.4.11"
> upValue (42..47): "COM"
> normValue : "com"
> 


Mime
View raw message