diff options
author | Sumit Bose <sbose@redhat.com> | 2009-09-17 11:11:54 +0200 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-11-07 13:15:53 -0500 |
commit | 6922197ba66b8d8806d95179312821901f7de085 (patch) | |
tree | 7ccc194e90cf208cb6ac9e17c455a9931dd785e2 /server/db | |
parent | 2baa90f92dce1cb5b71c7a0b7b8e2ed93f704e77 (diff) | |
download | sssd-6922197ba66b8d8806d95179312821901f7de085.tar.gz sssd-6922197ba66b8d8806d95179312821901f7de085.tar.bz2 sssd-6922197ba66b8d8806d95179312821901f7de085.zip |
added access module of IPA provider
Diffstat (limited to 'server/db')
-rw-r--r-- | server/db/sysdb.c | 8 | ||||
-rw-r--r-- | server/db/sysdb.h | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c index 4e6e71e4..971add09 100644 --- a/server/db/sysdb.c +++ b/server/db/sysdb.c @@ -24,6 +24,14 @@ #include "confdb/confdb.h" #include <time.h> + +struct ldb_dn *sysdb_custom_subtree_dn(struct sysdb_ctx *ctx, void *memctx, + const char *domain, + const char *subtree_name) +{ + return ldb_dn_new_fmt(memctx, ctx->ldb, SYSDB_TMPL_CUSTOM_SUBTREE, + subtree_name, domain); +} struct ldb_dn *sysdb_custom_dn(struct sysdb_ctx *ctx, void *memctx, const char *domain, const char *object_name, const char *subtree_name) diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 85aea4b7..68486de4 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -140,6 +140,7 @@ #define SYSDB_TMPL_USER SYSDB_NAME"=%s,"SYSDB_TMPL_USER_BASE #define SYSDB_TMPL_GROUP SYSDB_NAME"=%s,"SYSDB_TMPL_GROUP_BASE +#define SYSDB_TMPL_CUSTOM_SUBTREE "cn=%s,"SYSDB_TMPL_CUSTOM_BASE #define SYSDB_TMPL_CUSTOM SYSDB_NAME"=%s,cn=%s,"SYSDB_TMPL_CUSTOM_BASE #define SYSDB_MOD_ADD LDB_FLAG_MOD_ADD @@ -193,6 +194,9 @@ struct ldb_dn *sysdb_domain_dn(struct sysdb_ctx *ctx, void *memctx, struct ldb_dn *sysdb_custom_dn(struct sysdb_ctx *ctx, void *memctx, const char *domain, const char *object_name, const char *subtree_name); +struct ldb_dn *sysdb_custom_subtree_dn(struct sysdb_ctx *ctx, void *memctx, + const char *domain, + const char *subtree_name); |