From: Andrew Bartlett Date: Mon, 6 Aug 2001 09:35:08 +0000 (+0000) Subject: Record the NT_STATUS constant rather than its number in the logfiles X-Git-Tag: samba-2.2.5pre1~1693^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fff946cf113b4858b730f5ba644d5648ba95027;p=thirdparty%2Fsamba.git Record the NT_STATUS constant rather than its number in the logfiles Fix typo in lmhosts manpage --- diff --git a/docs/docbook/manpages/lmhosts.5.sgml b/docs/docbook/manpages/lmhosts.5.sgml index 32ed13f043b..7934c18e8ec 100644 --- a/docs/docbook/manpages/lmhosts.5.sgml +++ b/docs/docbook/manpages/lmhosts.5.sgml @@ -20,7 +20,7 @@ DESCRIPTION - This file is part of the < + This file is part of the Samba suite. lmhosts is the Samba diff --git a/source/auth/auth.c b/source/auth/auth.c index 4bfbfe65fee..b679312cc4d 100644 --- a/source/auth/auth.c +++ b/source/auth/auth.c @@ -140,7 +140,8 @@ uint32 check_password(const auth_usersupplied_info *user_info, auth_serversuppli if (nt_status == NT_STATUS_NOPROBLEMO) { DEBUG(5, ("check_password: Password for user %s suceeded\n", user_info->smb_username.str)); } else { - DEBUG(3, ("check_password: Password for user %s FAILED with error %d\n", user_info->smb_username.str, nt_status)); + DEBUG(3, ("check_password: Password for user %s FAILED with error %s\n", user_info->smb_username.str, get_nt_error_msg(nt_status))); + } return nt_status; diff --git a/source/smbd/auth.c b/source/smbd/auth.c index 4bfbfe65fee..b679312cc4d 100644 --- a/source/smbd/auth.c +++ b/source/smbd/auth.c @@ -140,7 +140,8 @@ uint32 check_password(const auth_usersupplied_info *user_info, auth_serversuppli if (nt_status == NT_STATUS_NOPROBLEMO) { DEBUG(5, ("check_password: Password for user %s suceeded\n", user_info->smb_username.str)); } else { - DEBUG(3, ("check_password: Password for user %s FAILED with error %d\n", user_info->smb_username.str, nt_status)); + DEBUG(3, ("check_password: Password for user %s FAILED with error %s\n", user_info->smb_username.str, get_nt_error_msg(nt_status))); + } return nt_status;