summaryrefslogtreecommitdiff
path: root/src/responder/nss
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-05-11 10:53:12 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-30 13:46:10 +0200
commit777374243e15c53e7b0a7345e190c1018920be18 (patch)
tree4a343f9d58838d9eb155cdc68a218fac86de3b64 /src/responder/nss
parent48cb64a1d6cf2ceff9e698c4626689cb53f7499c (diff)
downloadsssd-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.c6
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;