as discussed on irc, this is a small patch that allows a few more
authorAndrew Tridgell <tridge@samba.org>
Wed, 19 Nov 2003 08:11:14 +0000 (08:11 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 19 Nov 2003 08:11:14 +0000 (08:11 +0000)
commit702b35da0ac7c73aa5a6603f871d865565bbe278
tree5c12cfe43d3eb7870af2921ace7c9243711b0c2b
parent06c9e9163010a1035f448f76c4084228dc95334f
as discussed on irc, this is a small patch that allows a few more
winbind functions to be accessed via NSS. This provides a much cleaner
way for applications that need (for example) to provide name->sid
mappings to do this via NSS rather than having to know the winbindd
pipe protocol (as this might change).

This patch also adds a varient of the winbindd_getgroups() call called
winbindd_getusersids() that provides direct SID->SIDs listing of a
users supplementary groups. This is enough to allow non-Samba
applications to do ACL checking.

A test program for the new functionality will be committed shortly.

I also added the 'wbinfo --user-sids' option to expose the new
function in wbinfo.
source/nsswitch/wbinfo.c
source/nsswitch/winbind_nss_linux.c
source/nsswitch/winbindd.c
source/nsswitch/winbindd_group.c
source/nsswitch/winbindd_nss.h
source/nsswitch/winbindd_sid.c