git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4242309
)
r17828: set the auto_baseDN opaque even on failure to fetch rootDSE. That
author
Andrew Tridgell
<tridge@samba.org>
Fri, 25 Aug 2006 12:45:19 +0000
(12:45 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:16:46 +0000
(14:16 -0500)
ensures we never try twice
source/lib/ldb/common/ldb.c
patch
|
blob
|
history
diff --git
a/source/lib/ldb/common/ldb.c
b/source/lib/ldb/common/ldb.c
index f49fb2d955d9adcfd05d550781d6e66c33170514..db5333187b6a97fac35ba1d82ab9371bfb010dda 100644
(file)
--- a/
source/lib/ldb/common/ldb.c
+++ b/
source/lib/ldb/common/ldb.c
@@
-554,9
+554,7
@@
const struct ldb_dn *ldb_auto_basedn(struct ldb_context *ldb)
basedn = ldb_msg_find_attr_as_dn(ldb, res->msgs[0], "defaultNamingContext");
}
- if (basedn) {
- ldb_set_opaque(ldb, "auto_baseDN", basedn);
- }
+ ldb_set_opaque(ldb, "auto_baseDN", basedn);
talloc_free(tmp_ctx);
return basedn;