diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-11 10:53:12 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-30 13:46:10 +0200 |
commit | 777374243e15c53e7b0a7345e190c1018920be18 (patch) | |
tree | 4a343f9d58838d9eb155cdc68a218fac86de3b64 /src/responder/nss | |
parent | 48cb64a1d6cf2ceff9e698c4626689cb53f7499c (diff) | |
download | sssd-777374243e15c53e7b0a7345e190c1018920be18.tar.gz sssd-777374243e15c53e7b0a7345e190c1018920be18.tar.bz2 sssd-777374243e15c53e7b0a7345e190c1018920be18.zip |
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.
Diffstat (limited to 'src/responder/nss')
-rw-r--r-- | src/responder/nss/nsssrv_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index 268cfc83..39076e2b 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; |