Is there a Samba C/C++ API?

Richard Sharpe sharpe at ns.aus.com
Tue Oct 16 02:29:12 GMT 2001


Mike Papper wrote:

> Is there a programming interface to/for Samba? I would like to talk with a NT 
> PDC from my C program. If there is no official API + shared object library, 
> is there a standard technique for cut-pasting the samba source code and using 
> that (or a portion of it) as a shared library - like a do-it-yourself API?


libsmbclient? If it does not contain what you need, please tell me and I 
will see about adding it.

 
> I did see something like this in the mod_ntlm code for Apache. It uses what 
> looks like samba API calls to logon a user. I want to do a similar thing (but 
> not in Apache) to:
> 
> find the following information from an NT Primary Domain Controller:
> i) a list of all users
> ii) a list of all groups
> iii) for a given user, what groups they are in
> iv) for a given group, a list of all users
> 
> Is this even remotely possible from a C/C++ program (running on linux)?
> 
> I hear rumors that "samba doesn't do groups" - is this true? What does it 
> mean?
> 
> Also, does anyone know of some documentation that ties together windows-based 
> authentication - stuff like samba, NT, PDCs, LanMan, LDAP/ActiveDirectory 
> etc? 
> 
> P.S. could you respond to my email "mike at digitalpipe.net" as I'm not on the 
> list yet - and I'm not sure if I should.
> 
> 


-- 
Richard Sharpe, rsharpe at ns.aus.com, LPIC-1
www.samba.org, www.ethereal.com, SAMS Teach Yourself Samba
in 24 Hours, Special Edition, Using Samba





More information about the samba-technical mailing list