Calling winbind from C/C++
Tim Potter
tpot at samba.org
Thu Oct 18 00:21:08 GMT 2001
Mike Papper writes:
> You have hit on my problem - how to know what files to include. Do you have
> some rules for this?
Trial and error? Unfortunately there are some silly dependencies
in Samba which prevent other clients from easily using the samba
code. Maybe this is a feature? (-:
> I tried lots of combos. When I tried to use the next_token function, I found
> I needed the includes.h. This is what wbinfo.c did. Perhaps I just dont need
> next_token for C++ programs?
You shouldn't really need it. For a winbind client all that is
really needed is the wb_common.c code which doesn't have any
other dependencies.
> What it seems like is that the samba header files are not C++ compliant at
> all. I wonder about libsmbclient.h then.
Don't know. It probably does.
Tim.
More information about the samba-technical
mailing list