From: Andrew Bartlett Date: Fri, 18 May 2012 07:38:48 +0000 (+1000) Subject: s3-libads: Map LDAP_TIMELIMIT_EXCEEDED as NT_STATUS_IO_TIMEOUT X-Git-Tag: samba-3.5.16~22 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=7f0abf6b9dbe684775c428b99ef12014d5050fec 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 (cherry picked from commit d113c69edb57c7a3d72e3ab122cec44858a5313e) --- diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c index 6680766f23f..392e82f1605 100644 --- a/source3/libads/ads_status.c +++ b/source3/libads/ads_status.c @@ -79,6 +79,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