From 584b9852a6dd256263b92115fda4f637bbeaa162 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 18 May 2012 17:38:48 +1000 Subject: [PATCH 1/4] 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 --- source3/libads/ads_status.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c index fc489a9..7465531 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 -- 1.7.7.6