[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-430-g79f7a51
Günther Deschner
gd at samba.org
Wed Mar 26 00:30:52 GMT 2008
The branch, v3-2-test has been updated
via 79f7a519f8f61a31d84467c5b5975cae13db1c29 (commit)
via 0ad00a452f03d8af6e6b6fabd4a05ca26a9910d0 (commit)
from aa4377561b691e2c5108c18aeb34fff39d8775df (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 79f7a519f8f61a31d84467c5b5975cae13db1c29
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 26 01:27:36 2008 +0100
Fix wbcAuthenticateUserEx().
Guenther
commit 0ad00a452f03d8af6e6b6fabd4a05ca26a9910d0
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 26 01:25:57 2008 +0100
Add debug statement in auth_winbind to display wbcAuthenticateUserEx error code.
Guenther
-----------------------------------------------------------------------
Summary of changes:
source/auth/auth_winbind.c | 5 +++++
source/nsswitch/libwbclient/wbc_pam.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/auth/auth_winbind.c b/source/auth/auth_winbind.c
index 26a1b7f..20faa95 100644
--- a/source/auth/auth_winbind.c
+++ b/source/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;
}
diff --git a/source/nsswitch/libwbclient/wbc_pam.c b/source/nsswitch/libwbclient/wbc_pam.c
index 1164ab1..c1457cc 100644
--- a/source/nsswitch/libwbclient/wbc_pam.c
+++ b/source/nsswitch/libwbclient/wbc_pam.c
@@ -324,7 +324,7 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
WBFLAG_PAM_LMKEY;
if (params->password.response.lm_length &&
- params->password.response.lm_data) {
+ !params->password.response.lm_data) {
wbc_status = WBC_ERR_INVALID_PARAM;
BAIL_ON_WBC_ERROR(wbc_status);
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list