1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source/nsswitch
Jeremy Allison 5e5cc6efe2 Started to canonicalize our handling of uid -> sid code in order to
get ready and fix se_access_check().
Added cannonical lookup_name(), lookup_sid(), uid_to_sid(), gid_to_sid()
functions that look via winbind first the fall back on local lookup.

All Samba should use these rather than trying to call winbindd code
directly.

Added NT_USER_TOKEN struct in user_struct, contains list of NT sids
associated with this user.

se_access_check() should use this (cached) value rather than attempting
to do the same thing itself when given a uid/gid pair.

More work needs to be done to preserve these things accross security
context changes (especially with the tricky pipe problem) but I'm
beginning to see how this will be done..... probably by registering
a new vuid for an authenticated RPC pipe and not treating the
pipe calls specially.

More thoughts needed - but we're almost there...

Jeremy.
0001-01-01 00:00:00 +00:00
..
pam_winbind.c in head as well ... 0001-01-01 00:00:00 +00:00
README added basic nsswitch support - this allows you to use a "wins" entry 0001-01-01 00:00:00 +00:00
wb_client.c Started to canonicalize our handling of uid -> sid code in order to 0001-01-01 00:00:00 +00:00
wb_common.c Renamed a parameter in init_request() function. 0001-01-01 00:00:00 +00:00
wbinfo.c Merge of wbinfo program from TNG. 0001-01-01 00:00:00 +00:00
winbind_nss_config.h Fixes for IRIX kernel oplocks and systems that don't have nss.h 0001-01-01 00:00:00 +00:00
winbind_nss.c - changed smb_getpwnam() to use winbind style usernames 0001-01-01 00:00:00 +00:00
winbindd_cache.c While we're all making incompatible tdb changes, I changed the implementation 0001-01-01 00:00:00 +00:00
winbindd_group.c use "winbind separator" in tng as well 0001-01-01 00:00:00 +00:00
winbindd_idmap.c While we're all making incompatible tdb changes, I changed the implementation 0001-01-01 00:00:00 +00:00
winbindd_nss.h Merge of wbinfo program from TNG. 0001-01-01 00:00:00 +00:00
winbindd_pam.c moved secrets handling into secrets.c 0001-01-01 00:00:00 +00:00
winbindd_proto.h brought the winbindd code into head 0001-01-01 00:00:00 +00:00
winbindd_user.c use "winbind separator" in tng as well 0001-01-01 00:00:00 +00:00
winbindd_util.c Moved winbind client functions from various odd locations to 0001-01-01 00:00:00 +00:00
winbindd.c brought the winbindd code into head 0001-01-01 00:00:00 +00:00
winbindd.h in head as well ... 0001-01-01 00:00:00 +00:00
wins.c Instead of handing back a string (which might be a DNS name or an IP 0001-01-01 00:00:00 +00:00

This extension provides a "wins" module for NSS on glibc2/Linux.  This
allows you to use a WINS entry in /etc/nsswitch.conf for hostname
resolution, allowing you to resolve netbios names via start unix
gethostbyname() calls. The end result is that you can use netbios
names as host names in unix apps.

1) run configure
2) run "make nsswitch"
3) cp nsswitch/libnss_wins.so /lib/libnss_wins.so.2
4) add a wins entry to the hosts line in /etc/nsswitch.conf
5) use it

tridge@linuxcare.com