summaryrefslogtreecommitdiff
path: root/server/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/sss_groupmod.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/tools/sss_groupmod.c b/server/tools/sss_groupmod.c
index 5420fc03..175d08d1 100644
--- a/server/tools/sss_groupmod.c
+++ b/server/tools/sss_groupmod.c
@@ -156,16 +156,16 @@ static void remove_from_groups(struct ops_ctx *data)
struct ldb_dn *member_dn;
struct tevent_req *req;
- member_dn = sysdb_group_dn(data->ctx->sysdb, data,
+ parent_dn = sysdb_group_dn(data->ctx->sysdb, data,
data->domain->name, data->name);
- if (!member_dn) {
+ if (!parent_dn) {
return mod_group_done(data, ENOMEM);
}
- parent_dn = sysdb_group_dn(data->ctx->sysdb, data,
+ member_dn = sysdb_group_dn(data->ctx->sysdb, data,
data->domain->name,
data->rmgroups[data->cur]);
- if (!parent_dn) {
+ if (!member_dn) {
return mod_group_done(data, ENOMEM);
}
@@ -213,16 +213,16 @@ static void add_to_groups(struct ops_ctx *data)
struct ldb_dn *member_dn;
struct tevent_req *req;
- member_dn = sysdb_group_dn(data->ctx->sysdb, data,
+ parent_dn = sysdb_group_dn(data->ctx->sysdb, data,
data->domain->name, data->name);
- if (!member_dn) {
+ if (!parent_dn) {
return mod_group_done(data, ENOMEM);
}
- parent_dn = sysdb_group_dn(data->ctx->sysdb, data,
+ member_dn = sysdb_group_dn(data->ctx->sysdb, data,
data->domain->name,
data->addgroups[data->cur]);
- if (!parent_dn) {
+ if (!member_dn) {
return mod_group_done(data, ENOMEM);
}