git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libads: Decide to have no fallback option
[nivanova/samba-autobuild/.git]
/
source3
/
libads
/
ldap.c
diff --git
a/source3/libads/ldap.c
b/source3/libads/ldap.c
index b2c57480f1e231366987b5a7204968289deaa6a8..c18837cc524d3097f83b20a33e167078288e7ca5 100644
(file)
--- a/
source3/libads/ldap.c
+++ b/
source3/libads/ldap.c
@@
-613,6
+613,11
@@
ADS_STATUS ads_connect(ADS_STRUCT *ads)
if (ads->server.gc == true) {
return ADS_ERROR(LDAP_OPERATIONS_ERROR);
}
+
+ if (ads->server.no_fallback) {
+ status = ADS_ERROR_NT(NT_STATUS_NOT_FOUND);
+ goto out;
+ }
}
ntstatus = ads_find_dc(ads);