summaryrefslogtreecommitdiffstats
path: root/source/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-02 15:04:47 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-02 15:04:47 +0000
commit1afb2695a020424d014c4dee9c6a73620281aaa8 (patch)
treebbc90ab1af4e5af967a76ca5bb4ed7831a6a654c /source/auth
parente73b01204a8625946ff0fb5f9fc99dd959eb801c (diff)
downloadsamba-1afb2695a020424d014c4dee9c6a73620281aaa8.tar.gz
samba-1afb2695a020424d014c4dee9c6a73620281aaa8.tar.xz
samba-1afb2695a020424d014c4dee9c6a73620281aaa8.zip
Map a useless error code to a useful one...
Diffstat (limited to 'source/auth')
-rw-r--r--source/auth/auth_domain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/auth/auth_domain.c b/source/auth/auth_domain.c
index 256c4532edc..7dca5914f0b 100644
--- a/source/auth/auth_domain.c
+++ b/source/auth/auth_domain.c
@@ -175,6 +175,11 @@ static NTSTATUS connect_to_domain_password_server(struct cli_state **cli,
&dest_ip, 0, "IPC$", "IPC", "", "", "",0, retry);
if (!NT_STATUS_IS_OK(result)) {
+ /* map to something more useful */
+ if (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL)) {
+ result = NT_STATUS_NO_LOGON_SERVERS;
+ }
+
release_server_mutex();
return result;
}