summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2013-01-09 20:30:58 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-01-16 15:40:19 +0100
commit6a16292fe61e6ee01895d1d9e99bf5fc92b869bb (patch)
tree9c1cf1af3764c5237fd6d758195d45f611e7449e /src
parentf82135b75f0574e65c73269d6f24d42ba025b8e2 (diff)
downloadsssd-6a16292fe61e6ee01895d1d9e99bf5fc92b869bb.tar.gz
sssd-6a16292fe61e6ee01895d1d9e99bf5fc92b869bb.tar.bz2
sssd-6a16292fe61e6ee01895d1d9e99bf5fc92b869bb.zip
tools: Respect use_fully_qualified_names
Tools for LOCAL domain should require FQDN if option 'use_fuly_quallified_names = TRUE' was configured. https://fedorahosted.org/sssd/ticket/1746
Diffstat (limited to 'src')
-rw-r--r--src/tools/tools_util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/tools_util.c b/src/tools/tools_util.c
index c27b88a1..0151400d 100644
--- a/src/tools/tools_util.c
+++ b/src/tools/tools_util.c
@@ -180,6 +180,15 @@ int parse_name_domain(struct tools_ctx *tctx,
DEBUG(1, ("Invalid domain %s specified in FQDN\n", domain));
return EINVAL;
}
+ } else {
+ if (tctx->local->fqnames) {
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("Name '%s' does not seem to be FQDN "
+ "('%s = TRUE' is set)\n", fullname, CONFDB_DOMAIN_FQ));
+ ERROR("Name '%1$s' does not seem to be FQDN "
+ "('%2$s = TRUE' is set)\n", fullname, CONFDB_DOMAIN_FQ);
+ return EINVAL;
+ }
}
return EOK;