[proof of concept] libwbclient.so
Gerald (Jerry) Carter
jerry at samba.org
Wed Aug 29 20:50:47 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Folks,
Attached is a very basic POC of how to build a libwbclient.so
which can be linked into application for accessing the
winbindd API. I've only included the lookupname() call
$ gcc -o wbinfo-test main.c -lwbclient
$ ./wbinfo AD gcarter
S-1-5-21-3234968684-14787312-124015166-3136 (1)
The goal is to remove the tight coupling between smbd and
winbindd so that Winbind can be developed independently
of smbd. Currently smbd is hard coded to a specific
WINBIND_INTERFACE_VERSION. What I'm doing is to allow
smbd to link against a library that carries that dependency
instead. So that if you need to upgrade winbindd, as long
as the libwbclient maintains a compatible API, one can
replace winbindd without having to upgrade or recompile
smbd as well.
This plays into the marshalling proposal for the winbind pipe
that has been discussed in the past but does not interfere with
it as it provides the 3rd-party application access and does not
concern itself with how the bits are written onto the domain
socket to communicate with winbindd. That can be changed
without impacting the high level API.
The main steps of development are agreement on an API and
the Makefile changes to link smbd against libwbclient rather
than the Winbind *.o files.
cheers, jerry
=====================================================================
Samba ------- http://www.samba.org
Centeris ----------- http://www.centeris.com
"What man is a man who does not make the world better?" --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG1dwnIR7qMdg1EfYRAvp4AJ9noEJFY36SNagg9cmzdm2MLr6aBQCfSeqb
N2IEcbrv2I3da4Lsy6jhk2c=
=j7qX
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libwbclient.patch
Type: text/x-patch
Size: 9390 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070829/2b35e994/libwbclient.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wbclient-test.c
Type: text/x-csrc
Size: 363 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070829/2b35e994/wbclient-test.bin
More information about the samba-technical
mailing list