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

Re: dn_normalize

At 09:56 PM 8/14/2001, Mark Adamson wrote:
>At the end of the slap_sasl_getdn() function in servers/slapd/sasl.c the
>DN string that has been created is run through dn_normalize(). However,
>the string that was made is prefixed with "dn:", and the dnNormalize()
>function in schema_init.c wants to validate the string as a real DN before
>handing it back. The "dn:" prefix will fail validation (yes?),
>so dnNormalize() balks and does not normalize the string.
>I'd like to fix this by changing
>        dn_normalize( dn );
>        dn_normalize( dn+3 );
>to skip over the "dn:" prefix. Can anyone think of any problems that can
>arise from handing the middle of a string to dn_normalize() ?

currently, no.