diff options
author | Günther Deschner <gd@samba.org> | 2008-03-26 01:25:57 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-03-26 01:29:56 +0100 |
commit | 5b8591c05f45b20f19b359dbf5200efe44b35502 (patch) | |
tree | ceb431e5a5f839cddd412521a9b4f5895ecb44a7 /source3/auth/auth_winbind.c | |
parent | e6a1027757ef08a5a780175b93ebdb314e91cdba (diff) | |
download | samba-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.c | 5 |
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(¶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; } |