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-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=d113c69edb57c7a3d72e3ab122cec44858a5313e 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 --- 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