summaryrefslogtreecommitdiff
path: root/source/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-04-06 16:49:09 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-04-06 16:49:09 +0000
commitdf5cc8f01ca47d5cbcc1285b8ee2eeebef86e13c (patch)
treeb111734f9b876dd266090fd764aa74e3888904a1 /source/auth
parentd4b84d8b5b8aed9b127f217d54cc60ad726b4ec0 (diff)
downloadsamba-df5cc8f01ca47d5cbcc1285b8ee2eeebef86e13c.tar.gz
r86: This function was moved to lib/nterr.h
Andrew Bartlett
Diffstat (limited to 'source/auth')
-rw-r--r--source/auth/auth_util.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c
index 3f1ac9c9758..e6ed83a79af 100644
--- a/source/auth/auth_util.c
+++ b/source/auth/auth_util.c
@@ -1401,34 +1401,6 @@ NT_USER_TOKEN *dup_nt_token(NT_USER_TOKEN *ptoken)
}
/**
- * Squash an NT_STATUS in line with security requirements.
- * In an attempt to avoid giving the whole game away when users
- * are authenticating, NT replaces both NT_STATUS_NO_SUCH_USER and
- * NT_STATUS_WRONG_PASSWORD with NT_STATUS_LOGON_FAILURE in certain situations
- * (session setups in particular).
- *
- * @param nt_status NTSTATUS input for squashing.
- * @return the 'squashed' nt_status
- **/
-
-NTSTATUS nt_status_squash(NTSTATUS nt_status)
-{
- if NT_STATUS_IS_OK(nt_status) {
- return nt_status;
- } else if NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_SUCH_USER) {
- /* Match WinXP and don't give the game away */
- return NT_STATUS_LOGON_FAILURE;
-
- } else if NT_STATUS_EQUAL(nt_status, NT_STATUS_WRONG_PASSWORD) {
- /* Match WinXP and don't give the game away */
- return NT_STATUS_LOGON_FAILURE;
- } else {
- return nt_status;
- }
-}
-
-
-/**
* Verify whether or not given domain is trusted.
*
* @param domain_name name of the domain to be verified