git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4d9909
)
s3-libads: Map LDAP_TIMELIMIT_EXCEEDED as NT_STATUS_IO_TIMEOUT
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 18 May 2012 07:38:48 +0000
(17:38 +1000)
committer
Karolin Seeger
<kseeger@samba.org>
Sat, 30 Jun 2012 11:43:57 +0000
(13:43 +0200)
This allows Samba to then handle this error in the same way it would for RPC connections
Andrew Bartlett
(cherry picked from commit
d113c69edb57c7a3d72e3ab122cec44858a5313e
)
source3/libads/ads_status.c
patch
|
blob
|
history
diff --git
a/source3/libads/ads_status.c
b/source3/libads/ads_status.c
index 6680766f23f51f8c2435c292b0e3288e6c6a8236..392e82f160530522f82e1b3a684ae596d0937585 100644
(file)
--- 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