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 | 1afb2695a020424d014c4dee9c6a73620281aaa8 (patch) | |
tree | bbc90ab1af4e5af967a76ca5bb4ed7831a6a654c /source/auth | |
parent | e73b01204a8625946ff0fb5f9fc99dd959eb801c (diff) | |
download | samba-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.c | 5 |
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; } |