From f0cefca80767664b876d10126f7f79fc36dc1993 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 27 Feb 2009 17:04:11 -0500 Subject: Convert sync calls in sysdb to async, transaction dependent, calls. --- server/db/sysdb.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'server/db/sysdb.c') diff --git a/server/db/sysdb.c b/server/db/sysdb.c index 1c91f1227..84d580a84 100644 --- a/server/db/sysdb.c +++ b/server/db/sysdb.c @@ -24,6 +24,19 @@ #include "confdb/confdb.h" #include +struct ldb_dn *sysdb_user_dn(struct sysdb_ctx *ctx, void *memctx, + const char *domain, const char *name) +{ + return ldb_dn_new_fmt(memctx, ctx->ldb, SYSDB_TMPL_USER, name, domain); +} + +struct ldb_dn *sysdb_group_dn(struct sysdb_ctx *ctx, void *memctx, + const char *domain, const char *name) +{ + return ldb_dn_new_fmt(memctx, ctx->ldb, SYSDB_TMPL_GROUP, name, domain); +} + + /************************************************ * Initialiazation stuff */ -- cgit