summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <anschneider@suse.de>2008-10-20 14:51:00 +0200
committerGünther Deschner <gd@samba.org>2008-10-21 15:26:39 +0200
commit95b13b313bb35e97e4318e229ab7773c0218abae (patch)
tree86e92c7477fe1cd95b9710a07dae22d4dfe32f09 /source3
parent2ee8d29d22bcb1c350ab59d71b0aee548489bc9c (diff)
downloadsamba-95b13b313bb35e97e4318e229ab7773c0218abae.tar.gz
samba-95b13b313bb35e97e4318e229ab7773c0218abae.tar.bz2
samba-95b13b313bb35e97e4318e229ab7773c0218abae.zip
Set the right return value if wbc_status is set to an error.
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/pam_winbind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 8d8868d0ef..4cfd9001d6 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -2735,6 +2735,11 @@ out:
wbcFreeMemory(logoff.blobs);
}
+ if (!WBC_ERROR_IS_OK(wbc_status)) {
+ retval = wbc_auth_error_to_pam_error(ctx, error, wbc_status,
+ user, "wbcLogoffUser");
+ }
+
_PAM_LOG_FUNCTION_LEAVE("pam_sm_close_session", ctx, retval);
TALLOC_FREE(ctx);