summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-25 12:45:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:46 -0500
commit60898ca0b7cf3cacc160e430441cb7f701bbd389 (patch)
tree1d8644acd9c7ffea9a441947c93b71a225dad097 /source4/lib/ldb/common
parent2e771a7e1ba0abc7f42f36aa029331ccb719662a (diff)
downloadsamba-60898ca0b7cf3cacc160e430441cb7f701bbd389.tar.gz
samba-60898ca0b7cf3cacc160e430441cb7f701bbd389.tar.bz2
samba-60898ca0b7cf3cacc160e430441cb7f701bbd389.zip
r17828: set the auto_baseDN opaque even on failure to fetch rootDSE. That
ensures we never try twice (This used to be commit 946901e5dde9d31727448070a06e56da38d4a59e)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c
index f49fb2d955..db5333187b 100644
--- a/source4/lib/ldb/common/ldb.c
+++ b/source4/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;