summaryrefslogtreecommitdiffstats
path: root/src/util/usertools.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-03-27 12:30:53 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-04-09 08:35:16 +0200
commit1aa492ce890f362564bfac21f3cfb0a3e38608bd (patch)
tree8cbab507804e46c8bb2c7bba0fe8ec26a2957664 /src/util/usertools.c
parentd338bb46b8c03c33e6182e725911af6d778bcf00 (diff)
downloadsssd-1aa492ce890f362564bfac21f3cfb0a3e38608bd.tar.gz
sssd-1aa492ce890f362564bfac21f3cfb0a3e38608bd.tar.xz
sssd-1aa492ce890f362564bfac21f3cfb0a3e38608bd.zip
ncache: Silence critical error from filter_users when default_domain_suffix is set
When default_domain_suffix is used and filter_users is set (at least root is always, by default), SSSD tried to add the negcache entry to the default domain. But since the default domain is not known after start up, adding the entries fail with a verbose error message. This patch handles EAGAIN returned from the parsing function while setting negcache entries gracefully and also makes the debug message in parsing function more precise. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/util/usertools.c')
-rw-r--r--src/util/usertools.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/usertools.c b/src/util/usertools.c
index 439c1494a..c43d420e3 100644
--- a/src/util/usertools.c
+++ b/src/util/usertools.c
@@ -481,8 +481,7 @@ int sss_parse_name_for_domains(TALLOC_CTX *memctx,
}
if (match == NULL) {
DEBUG(SSSDBG_FUNC_DATA, "default domain [%s] is currently " \
- "not known, trying to look it up.\n",
- rdomain);
+ "not known\n", rdomain);
*domain = talloc_steal(memctx, rdomain);
ret = EAGAIN;
goto done;