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

Re: How to normalize a DN as in entries?



You should use dnPrettyNormal() to generate both e_name and e_nname.
In this case, the ctx pointer should be NULL.  If you don't need
the pretty form, you can use dnNormalize() instead.

At 08:11 AM 4/29/2003, Hallvard B Furuseth wrote:
>How do I convert a DN which was input by the user to the format used in
>Entry->e_nname?  There are several normalization routines in dn.c, I
>don't know which one to use.

We really should eliminate some of the unnecessary options here...


>I'm updating my old patch
>    http://folk.uio.no/hbf/OpenLDAP/slapcat-s.txt
>to HEAD, and it needs check if a DN in the database is in the subtree
>starting at the user-input DN.
>
>-- 
>Hallvard