libwbclient: Re-Fix a bug that was fixed with e5741e27c4c
authorVolker Lendecke <vl@samba.org>
Tue, 13 Apr 2010 10:09:21 +0000 (12:09 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 13 Apr 2010 15:47:50 +0000 (17:47 +0200)
commitbf36d608f869ea6aaa7007e2df4de0a943f0264e
tree4998dbf22c3b33bab6ff3ab8e54ab50741be6ee8
parentc0d8cc9093fb8f884497b6f19721ce40a7b4c6a4
libwbclient: Re-Fix a bug that was fixed with e5741e27c4c

> r21878: Fix a bug with smbd serving a windows terminal server: If winbind
> decides smbd to be idle it might happen that smbd needs to do a winbind
> operation (for example sid2name) as non-root. This then fails to get the
> privileged pipe. When later on on the same connection another authentication
> request comes in, we try to do the CRAP auth via the non-privileged pipe.
>
> This adds a winbindd_priv_request_response() request that kills the existing
> winbind pipe connection if it's not privileged.

The fix for this was lost during the conversion to libwbclient.

Thanks to Ira Cooper <samba@ira.wakeful.net> for pointing this out!

Volker
source/nsswitch/libwbclient/wbc_idmap.c
source/nsswitch/libwbclient/wbc_pam.c
source/nsswitch/libwbclient/wbclient.c
source/nsswitch/libwbclient/wbclient_internal.h