Do we need sam/api.c?

Andrew Bartlett abartlet at samba.org
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 pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net



More information about the samba-technical mailing list