summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2001-12-14 21:37:56 +0000
committerJim McDonough <jmcd@samba.org>2001-12-14 21:37:56 +0000
commitd6b2d2867343cab82937aec791708baba37aef1f (patch)
treee378313d7f5833993ecc2b42a3c667e26850e884
parentabcd1cad3af7ee111f711544407222951e33238e (diff)
downloadsamba-d6b2d2867343cab82937aec791708baba37aef1f.tar.gz
samba-d6b2d2867343cab82937aec791708baba37aef1f.tar.xz
samba-d6b2d2867343cab82937aec791708baba37aef1f.zip
If domain SID can't be fetched, we shouldn't return NT_STATUS_NO_MEMORY. It causes a confusing client error. Changed to NT_STATUS_CANT_ACCESS_DOMAIN_INFO.
(This used to be commit 07ea83e6f0f03ba4706c98abb58346a4f4ec983c)
-rw-r--r--source3/auth/auth_domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c
index 6b048e5021c..a5e90aff39a 100644
--- a/source3/auth/auth_domain.c
+++ b/source3/auth/auth_domain.c
@@ -382,7 +382,7 @@ static NTSTATUS domain_client_validate(const auth_usersupplied_info *user_info,
if (!secrets_fetch_domain_sid(lp_workgroup(), &domain_sid)) {
DEBUG(0, ("domain_client_validate: unable to fetch domain sid.\n"));
- status = NT_STATUS_NO_MEMORY;
+ status = NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
free_server_info(server_info);
goto done;
}