summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/db/sysdb_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index 3a310b7e..b7f6a19b 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -868,7 +868,7 @@ errno_t sysdb_get_direct_parents(TALLOC_CTX *mem_ctx,
if (mtype == SYSDB_MEMBER_USER) {
dn = sysdb_user_strdn(tmp_ctx, dom->name, name);
- } else if (mtype == SYSDB_MEMBER_USER) {
+ } else if (mtype == SYSDB_MEMBER_GROUP) {
dn = sysdb_group_strdn(tmp_ctx, dom->name, name);
} else {
DEBUG(1, ("Unknown member type\n"));