git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7965801
)
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>
Mon, 28 May 2012 19:28:42 +0000
(21:28 +0200)
This allows Samba to then handle this error in the same way it would for RPC connections
Andrew Bartlett
source3/libads/ads_status.c
patch
|
blob
|
history
diff --git
a/source3/libads/ads_status.c
b/source3/libads/ads_status.c
index a9e59edaddba9a4d680b79375fd9afc5ba3f6ded..8039534e3df50fa17b053b4040eb07f62074eb76 100644
(file)
--- a/
source3/libads/ads_status.c
+++ b/
source3/libads/ads_status.c
@@
-81,6
+81,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