New LDAP C API
Love Hörnquist Åstrand
lha at kth.se
Tue Feb 13 23:29:04 GMT 2007
> I've already invited folks from the Fedora Directory Server team to
> participate in this new design, and I'd like to get input from you
> folks too. Anybody who's done a significant amount of work with
> LDAP has probably cursed the API more than a few times. Let's fix it.
I don't like "4. char *'s should be avoided, use struct bervals more
extensively"
if it means removing char * that in practice always is strings. I
don't mind
getting output data in struct { void *, size_t ); elements, its when
its input
it sucks that you have wrapp everything in a struct foo just to pass
it it.
I really don't like the name of "struct bervals".
"5. "proper" error handling"
You should seriously consider using something like the heimdal
krb5_get_error_string
api to get out sane error messages (but with added error code).
I don't see malloc happy as a big problem.
Love
More information about the samba-technical
mailing list