diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-03-09 20:34:44 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-03-09 20:34:44 -0400 |
commit | 92bb11b3570c0ce1de84824d9697fa45422feb0b (patch) | |
tree | 3834cc0b59f463ce92ebc963c419e6352b7991fc /server/tools/sss_groupadd.c | |
parent | 5ea221d5325a2b60ec872a3864953178c8b593a0 (diff) | |
download | sssd-92bb11b3570c0ce1de84824d9697fa45422feb0b.tar.gz sssd-92bb11b3570c0ce1de84824d9697fa45422feb0b.tar.bz2 sssd-92bb11b3570c0ce1de84824d9697fa45422feb0b.zip |
Move MPG checks within sysdb.
This allows to perform checks and modifications in one transaction.
Uses configuration stored in confdb to determins if a domain uses MPGs.
Diffstat (limited to 'server/tools/sss_groupadd.c')
-rw-r--r-- | server/tools/sss_groupadd.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/server/tools/sss_groupadd.c b/server/tools/sss_groupadd.c index e36e220f..5363dbba 100644 --- a/server/tools/sss_groupadd.c +++ b/server/tools/sss_groupadd.c @@ -135,14 +135,6 @@ int main(int argc, const char **argv) goto fini; } - /* Check MPG constraints */ - ret = check_group_name_unique(ctx, group_ctx->groupname); - if(ret != EOK) { - DEBUG(1, ("Could not add group - name not unique\n")); - ret = EXIT_FAILURE; - goto fini; - } - /* add_group */ ret = sysdb_transaction(ctx, ctx->sysdb, add_group, group_ctx); if(ret != EOK) { |