diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 17:18:42 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:52:53 +0100 |
commit | 3187afe4aafa562f2a6747846181ac06d0659dff (patch) | |
tree | d39bd6c04a9c665c1752e3322d3367c9c3990edc /src/db | |
parent | 20d2466dbce2bb950813e3f739bc40b511020efb (diff) | |
download | sssd-3187afe4aafa562f2a6747846181ac06d0659dff.tar.gz sssd-3187afe4aafa562f2a6747846181ac06d0659dff.tar.bz2 sssd-3187afe4aafa562f2a6747846181ac06d0659dff.zip |
Add domain argument to sysdb_set_netgroup_attr()
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb.h | 1 | ||||
-rw-r--r-- | src/db/sysdb_ops.c | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index e96bc5a3..04f35e22 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -589,6 +589,7 @@ int sysdb_set_group_attr(struct sysdb_ctx *sysdb, /* Replace netgroup attrs */ int sysdb_set_netgroup_attr(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *name, struct sysdb_attrs *attrs, int mod_op); diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 80dd3e08..13eb46e5 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -619,6 +619,7 @@ done: /* =Replace-Attributes-On-Netgroup=========================================== */ int sysdb_set_netgroup_attr(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *name, struct sysdb_attrs *attrs, int mod_op) @@ -632,7 +633,7 @@ int sysdb_set_netgroup_attr(struct sysdb_ctx *sysdb, return ENOMEM; } - dn = sysdb_netgroup_dn(sysdb, tmp_ctx, sysdb->domain, name); + dn = sysdb_netgroup_dn(sysdb, tmp_ctx, domain, name); if (!dn) { ret = ENOMEM; goto done; @@ -1573,7 +1574,7 @@ int sysdb_add_netgroup(struct sysdb_ctx *sysdb, (now + cache_timeout) : 0)); if (ret) goto done; - ret = sysdb_set_netgroup_attr(sysdb, name, attrs, SYSDB_MOD_REP); + ret = sysdb_set_netgroup_attr(sysdb, sysdb->domain, name, attrs, SYSDB_MOD_REP); if (missing) { ret = sysdb_remove_attrs(sysdb, name, |