diff options
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/common/responder_dp.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c index d23075d6..53826b0f 100644 --- a/src/responder/common/responder_dp.c +++ b/src/responder/common/responder_dp.c @@ -548,11 +548,21 @@ sss_dp_get_account_msg(void *pvt) } if (info->opt_name) { - if (info->extra) { - filter = talloc_asprintf(info, "name=%s:%s", - info->opt_name, info->extra); + if (info->type == SSS_DP_SECID) { + if (info->extra) { + filter = talloc_asprintf(info, "%s=%s:%s", DP_SEC_ID, + info->opt_name, info->extra); + } else { + filter = talloc_asprintf(info, "%s=%s", DP_SEC_ID, + info->opt_name); + } } else { - filter = talloc_asprintf(info, "name=%s", info->opt_name); + if (info->extra) { + filter = talloc_asprintf(info, "name=%s:%s", + info->opt_name, info->extra); + } else { + filter = talloc_asprintf(info, "name=%s", info->opt_name); + } } } else if (info->opt_id) { if (info->extra) { |