summaryrefslogtreecommitdiff
path: root/source3/auth/auth_winbind.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-26 01:25:57 +0100
committerGünther Deschner <gd@samba.org>2008-03-26 01:29:56 +0100
commit5b8591c05f45b20f19b359dbf5200efe44b35502 (patch)
treeceb431e5a5f839cddd412521a9b4f5895ecb44a7 /source3/auth/auth_winbind.c
parente6a1027757ef08a5a780175b93ebdb314e91cdba (diff)
downloadsamba-5b8591c05f45b20f19b359dbf5200efe44b35502.tar.gz
Add debug statement in auth_winbind to display wbcAuthenticateUserEx error code.
Guenther (This used to be commit 0ad00a452f03d8af6e6b6fabd4a05ca26a9910d0)
Diffstat (limited to 'source3/auth/auth_winbind.c')
-rw-r--r--source3/auth/auth_winbind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c
index 26a1b7f1010..20faa95b01d 100644
--- a/source3/auth/auth_winbind.c
+++ b/source3/auth/auth_winbind.c
@@ -80,6 +80,11 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
wbc_status = wbcAuthenticateUserEx(&params, &info, &err);
unbecome_root();
+ if (!WBC_ERROR_IS_OK(wbc_status)) {
+ DEBUG(10,("check_winbind_security: wbcAuthenticateUserEx failed: %s\n",
+ wbcErrorString(wbc_status)));
+ }
+
if (wbc_status == WBC_ERR_NO_MEMORY) {
return NT_STATUS_NO_MEMORY;
}