summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-03-22 18:09:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:50 -0500
commite68ea1283de0d915656faaa599bd27054da7bf1c (patch)
tree23bb53f8f4f54bd623b38629cb3b05e73dfef79e
parent00320f7a5828b491e09eb65226f72b174fd69eb0 (diff)
downloadsamba-e68ea1283de0d915656faaa599bd27054da7bf1c.tar.gz
samba-e68ea1283de0d915656faaa599bd27054da7bf1c.tar.bz2
samba-e68ea1283de0d915656faaa599bd27054da7bf1c.zip
r21933: Change the write_sock() call in pam_winbind_request()
to not request a privileged pipe operation for everything as this cannot be done from a process running under the context of a user (e.g. screensaver). Thanks to Danilo Almeida <dalmeida@centeris.com> for the help in pointing out the change to write_sock(). (This used to be commit 80790f935abc8905542338b08f54d61ebacf2ff1)
-rw-r--r--source3/nsswitch/pam_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 66f9a09314..9d52dc89d0 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -436,7 +436,7 @@ static int pam_winbind_request(pam_handle_t * pamh, int ctrl,
/* Fill in request and send down pipe */
init_request(request, req_type);
- if (write_sock(request, sizeof(*request), 0, 1) == -1) {
+ if (write_sock(request, sizeof(*request), 0, 0) == -1) {
_pam_log(pamh, ctrl, LOG_ERR, "pam_winbind_request: write to socket failed!");
close_sock();
return PAM_SERVICE_ERR;