-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fixes a copy-paste error that prevented the -G/--groups parameter of
useradd from working.

        Jakub
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkp3HRUACgkQHsardTLnvCVhXwCfQQGP5UqyIfWlPN0CeByxKEIq
f3gAoMSi4kx0m6F/dO60OZc9ObiUkxWW
=5mtH
-----END PGP SIGNATURE-----
>From 3b806a8c0ed1b73c1e5083d29f9826d4d0152810 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhro...@redhat.com>
Date: Mon, 3 Aug 2009 19:18:56 +0200
Subject: [PATCH] Fix adding to groups on user creation

---
 server/tools/sss_useradd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/tools/sss_useradd.c b/server/tools/sss_useradd.c
index 66d9840..af77816 100644
--- a/server/tools/sss_useradd.c
+++ b/server/tools/sss_useradd.c
@@ -233,7 +233,7 @@ static void add_to_groups(struct ops_ctx *data)
     struct ldb_dn *member_dn;
     struct tevent_req *subreq;
 
-    member_dn = sysdb_group_dn(data->ctx->sysdb, data,
+    member_dn = sysdb_user_dn(data->ctx->sysdb, data,
                               data->domain->name, data->name);
     if (!member_dn) {
         return add_user_terminate(data, ENOMEM);
-- 
1.6.2.5

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to