diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-02 15:04:47 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-02 15:04:47 +0000 |
commit | 75c1bf29a8d14e2d0458b8f89e347a5e374d3ea5 (patch) | |
tree | f86b26457cd651bef98b1ff827f15cbed3d2f7ce | |
parent | de8a78e7223f351838ef81085a7ec42f54a3740c (diff) | |
download | samba-75c1bf29a8d14e2d0458b8f89e347a5e374d3ea5.tar.gz samba-75c1bf29a8d14e2d0458b8f89e347a5e374d3ea5.tar.xz samba-75c1bf29a8d14e2d0458b8f89e347a5e374d3ea5.zip |
Map a useless error code to a useful one...
(This used to be commit 1afb2695a020424d014c4dee9c6a73620281aaa8)
-rw-r--r-- | source3/auth/auth_domain.c | 5 |
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; } |