summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-18 17:38:48 +1000
committerJeremy Allison <jra@samba.org>2012-05-26 02:03:07 +0200
commit63fb1d396b771211208b653d7725bca73e8df955 (patch)
tree0ec03333d04702654571274ea0a0fadc885b8a8d /source3
parent518484af8d4960b483e40fbb244e284532efd267 (diff)
downloadsamba-63fb1d396b771211208b653d7725bca73e8df955.tar.gz
samba-63fb1d396b771211208b653d7725bca73e8df955.tar.bz2
samba-63fb1d396b771211208b653d7725bca73e8df955.zip
s3-libads: Map LDAP_TIMELIMIT_EXCEEDED as NT_STATUS_IO_TIMEOUT
This allows Samba to then handle this error in the same way it would for RPC connections Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/ads_status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c
index fc489a9f00..7465531404 100644
--- a/source3/libads/ads_status.c
+++ b/source3/libads/ads_status.c
@@ -82,6 +82,9 @@ NTSTATUS ads_ntstatus(ADS_STATUS status)
if (status.err.rc == LDAP_SUCCESS) {
return NT_STATUS_OK;
}
+ if (status.err.rc == LDAP_TIMELIMIT_EXCEEDED) {
+ return NT_STATUS_IO_TIMEOUT;
+ }
return NT_STATUS_LDAP(status.err.rc);
#endif
#ifdef HAVE_KRB5