Do we need sam/api.c?

Andrew Bartlett abartlet at
Sat Sep 28 14:57:00 GMT 2002

I was wondering:  In the new SAM stuff do we really need the api.c?

Why not make the api the context_ functions, and use the default context
if the user does not specify one (ie NULL)?

This would remove one layer from this whole area, which might make it
easier to comprehend...  

In the passdb stuff, we needed the outer layer due to need need for
source-level compatibility.  But we are going to have to change the
callers anyway, so why not reduce some complexity along the way?

That would make it 'user -> context -> backend', which might be easier
for potential developers to swallow.

It would also make samtest magicly 'work' before you specify a context,
rather than segfaulting...

Andrew Bartlett
Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at

More information about the samba-technical mailing list