summaryrefslogtreecommitdiff
path: root/source3/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
commit75c1bf29a8d14e2d0458b8f89e347a5e374d3ea5 (patch)
treef86b26457cd651bef98b1ff827f15cbed3d2f7ce /source3/auth
parentde8a78e7223f351838ef81085a7ec42f54a3740c (diff)
downloadsamba-75c1bf29a8d14e2d0458b8f89e347a5e374d3ea5.tar.gz
samba-75c1bf29a8d14e2d0458b8f89e347a5e374d3ea5.tar.bz2
samba-75c1bf29a8d14e2d0458b8f89e347a5e374d3ea5.zip
Map a useless error code to a useful one...
(This used to be commit 1afb2695a020424d014c4dee9c6a73620281aaa8)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_domain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c
index 256c4532ed..7dca5914f0 100644
--- a/source3/auth/auth_domain.c
+++ b/source3/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;
}