summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-06 00:59:59 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:49:20 +0100
commit3613cc1eba1337256a2d06ba7a84532156139ccd (patch)
treedb6b0b4facb78f7bad5917ffb9dda6c8789cab7b /src/db/sysdb.c
parent1e6f2180724de4722a5218826c9401181168d9d4 (diff)
downloadsssd-3613cc1eba1337256a2d06ba7a84532156139ccd.tar.gz
sssd-3613cc1eba1337256a2d06ba7a84532156139ccd.tar.xz
sssd-3613cc1eba1337256a2d06ba7a84532156139ccd.zip
Make sysdb_user_dn() require a domain explictly.
Diffstat (limited to 'src/db/sysdb.c')
-rw-r--r--src/db/sysdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 479791b79..b7951d32a 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -153,7 +153,7 @@ done:
}
struct ldb_dn *sysdb_user_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
- const char *name)
+ struct sss_domain_info *dom, const char *name)
{
errno_t ret;
char *clean_name;
@@ -165,7 +165,7 @@ struct ldb_dn *sysdb_user_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
}
dn = ldb_dn_new_fmt(mem_ctx, sysdb->ldb, SYSDB_TMPL_USER,
- clean_name, sysdb->domain->name);
+ clean_name, dom->name);
talloc_free(clean_name);
return dn;