From 5b8591c05f45b20f19b359dbf5200efe44b35502 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 26 Mar 2008 01:25:57 +0100 Subject: Add debug statement in auth_winbind to display wbcAuthenticateUserEx error code. Guenther (This used to be commit 0ad00a452f03d8af6e6b6fabd4a05ca26a9910d0) --- source3/auth/auth_winbind.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/auth') diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c index 26a1b7f101..20faa95b01 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(¶ms, &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; } -- cgit