summaryrefslogtreecommitdiff
path: root/server/tools
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-08-03 19:18:56 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-08-05 10:18:47 -0400
commit29d442dad6dcb93ffc193de6f7cfd402129d4fb3 (patch)
tree90e3aa82d25d9dad3dfc0946139ed7ead705cf6e /server/tools
parent93becde0ff15d0a0b01ec477e9dfe641dd9569ea (diff)
downloadsssd-29d442dad6dcb93ffc193de6f7cfd402129d4fb3.tar.gz
sssd-29d442dad6dcb93ffc193de6f7cfd402129d4fb3.tar.bz2
sssd-29d442dad6dcb93ffc193de6f7cfd402129d4fb3.zip
Fix adding to groups on user creation
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/sss_useradd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/sss_useradd.c b/server/tools/sss_useradd.c
index b2841798..22698e6f 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);