summaryrefslogtreecommitdiffstats
path: root/source/smbd/sesssetup.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-26 04:37:24 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-26 04:37:24 +0000
commit477b6d27fd7281418739bc8ba0b984a53430ecda (patch)
tree5ee7e6210fdad8d43eb2dfef32d82a070d7ce3f0 /source/smbd/sesssetup.c
parent4ab9ca31a02b3388aa89a00e0390ea9e4c76283a (diff)
downloadsamba-477b6d27fd7281418739bc8ba0b984a53430ecda.tar.gz
samba-477b6d27fd7281418739bc8ba0b984a53430ecda.tar.xz
samba-477b6d27fd7281418739bc8ba0b984a53430ecda.zip
we can safely give NO_SUCH_USER if the ticket decodes but the local
account doesn't exist
Diffstat (limited to 'source/smbd/sesssetup.c')
-rw-r--r--source/smbd/sesssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c
index 1b6776ed705..d49dbc15d1b 100644
--- a/source/smbd/sesssetup.c
+++ b/source/smbd/sesssetup.c
@@ -113,7 +113,7 @@ static int reply_spnego_kerberos(connection_struct *conn,
pw = smb_getpwnam(user,False);
if (!pw) {
DEBUG(1,("Username %s is invalid on this system\n",user));
- return ERROR_NT(NT_STATUS_LOGON_FAILURE);
+ return ERROR_NT(NT_STATUS_NO_SUCH_USER);
}
if (!make_server_info_pw(&server_info,pw)) {