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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 May 2010 07:50:12 +0000 (09:50 +0200)
commit4d9210ef9cca057ddb2a6e648a0215996b3362f0
tree6b4faef56b5ad4b7c504def1a74f1cfcb96232fe
parentc6c4606dac3035a76ab36233e5b877a984c95ab2
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

Fix bug #7357.
(cherry picked from commit 5c5e646ab3546aae4660b6598a6c89c66c3b4687)
nsswitch/libwbclient/wbc_idmap.c
nsswitch/libwbclient/wbc_pam.c
nsswitch/libwbclient/wbclient.c
nsswitch/libwbclient/wbclient_internal.h