From 60898ca0b7cf3cacc160e430441cb7f701bbd389 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 Aug 2006 12:45:19 +0000 Subject: r17828: set the auto_baseDN opaque even on failure to fetch rootDSE. That ensures we never try twice (This used to be commit 946901e5dde9d31727448070a06e56da38d4a59e) --- source4/lib/ldb/common/ldb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4/lib/ldb/common/ldb.c') 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; -- cgit