summaryrefslogtreecommitdiff
path: root/src/db/sysdb_search.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-08 13:45:55 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:53:03 +0100
commitc14184c07634801cda7864aa17c6fa8dc9ab43d1 (patch)
tree2dfce6637085a2c5975eb610cfd1c724c424b293 /src/db/sysdb_search.c
parent46675b5033169e1e954cd570413ce85b2c5e11fc (diff)
downloadsssd-c14184c07634801cda7864aa17c6fa8dc9ab43d1.tar.gz
sssd-c14184c07634801cda7864aa17c6fa8dc9ab43d1.tar.bz2
sssd-c14184c07634801cda7864aa17c6fa8dc9ab43d1.zip
Move mpg flag to the domain where it belongs
A sysdb contains now multiple domains, but the mpg property is a property of a specific domain not of the underlying database.
Diffstat (limited to 'src/db/sysdb_search.c')
-rw-r--r--src/db/sysdb_search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index 0bc813a6..8ff29c37 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -227,7 +227,7 @@ int sysdb_getgrnam(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
- if (sysdb->mpg) {
+ if (domain->mpg) {
fmt_filter = SYSDB_GRNAM_MPG_FILTER;
base_dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
SYSDB_DOM_BASE, domain->name);
@@ -299,7 +299,7 @@ int sysdb_getgrgid(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
- if (sysdb->mpg) {
+ if (domain->mpg) {
fmt_filter = SYSDB_GRGID_MPG_FILTER;
base_dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
SYSDB_DOM_BASE, domain->name);
@@ -349,7 +349,7 @@ int sysdb_enumgrent(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
- if (sysdb->mpg) {
+ if (domain->mpg) {
fmt_filter = SYSDB_GRENT_MPG_FILTER;
base_dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
SYSDB_DOM_BASE, domain->name);