summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/nss/nss_ldb.h2
-rw-r--r--server/nss/nsssrv.c1
-rw-r--r--server/nss/nsssrv_ldb.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/server/nss/nss_ldb.h b/server/nss/nss_ldb.h
index f8a161dc7..b7c2ba7d9 100644
--- a/server/nss/nss_ldb.h
+++ b/server/nss/nss_ldb.h
@@ -1,5 +1,7 @@
/* nss_ldb private header file */
+#define NSS_LDB_CONF_SECTION "config/services/nss"
+
#define NSS_DEF_LDB_PATH "/var/lib/sss/db/sssd.ldb"
#define NSS_DEF_USER_BASE "cn=users,cn=local"
diff --git a/server/nss/nsssrv.c b/server/nss/nsssrv.c
index 4ce00ffc1..0181644d4 100644
--- a/server/nss/nsssrv.c
+++ b/server/nss/nsssrv.c
@@ -272,6 +272,7 @@ static int nss_sbus_init(struct nss_ctx *nctx)
talloc_free(ns_ctx);
return ret;
}
+
dbus_conn = sbus_get_connection(ns_ctx->scon_ctx);
dbus_connection_set_exit_on_disconnect(dbus_conn, TRUE);
diff --git a/server/nss/nsssrv_ldb.c b/server/nss/nsssrv_ldb.c
index 418b16e22..6385c5acd 100644
--- a/server/nss/nsssrv_ldb.c
+++ b/server/nss/nsssrv_ldb.c
@@ -600,8 +600,6 @@ int nss_ldb_initgroups(TALLOC_CTX *mem_ctx,
return LDB_SUCCESS;
}
-#define NSS_LDB_CONF_SECTION "config/services/nss"
-
static int nss_ldb_read_var(TALLOC_CTX *tmp_ctx,
struct confdb_ctx *cdb,
struct nss_ldb_ctx *ctx,