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-4.0.0beta1~222 X-Git-Url: http://git.samba.org/samba.git/?p=nivanova%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=63fb1d396b771211208b653d7725bca73e8df955 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 --- diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c index fc489a9f005..7465531404d 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