From 777374243e15c53e7b0a7345e190c1018920be18 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sat, 11 May 2013 10:53:12 +0200 Subject: Allow flat name in the FQname format https://fedorahosted.org/sssd/ticket/1648 Adds another expansion in the printf format that allows the user to use the domain flat name in the format. --- src/responder/nss/nsssrv_cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/responder/nss') diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index 268cfc83e..39076e2b7 100644 --- a/src/responder/nss/nsssrv_cmd.c +++ b/src/responder/nss/nsssrv_cmd.c @@ -307,7 +307,7 @@ static int fill_pwent(struct sss_packet *packet, int ncret; TALLOC_CTX *tmp_ctx = NULL; - if (add_domain) dom_len = strlen(domain); + if (add_domain) dom_len = sss_fqdom_len(dom->names, dom); to_sized_string(&pwfield, nctx->pwfield); @@ -2161,7 +2161,7 @@ static int fill_members(struct sss_packet *packet, if (add_domain) { delim = 1; - dom_len = strlen(domain); + dom_len = sss_fqdom_len(dom->names, dom); } else { delim = 0; dom_len = 0; @@ -2292,7 +2292,7 @@ static int fill_grent(struct sss_packet *packet, if (add_domain) { delim = 1; - dom_len = strlen(domain); + dom_len = sss_fqdom_len(dom->names, dom); } else { delim = 0; dom_len = 0; -- cgit