summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-10-01 13:46:11 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-01 21:27:37 +0200
commitdf3056389818e31b4e8e705120bc9015b3dc2bab (patch)
treea526e1d139a545cd638bf25356db62ba65dc5445 /src/db
parent9f3e9e9984e48bb45c6c3fb8f49b0ff5bf337393 (diff)
downloadsssd-df3056389818e31b4e8e705120bc9015b3dc2bab.tar.gz
sssd-df3056389818e31b4e8e705120bc9015b3dc2bab.tar.xz
sssd-df3056389818e31b4e8e705120bc9015b3dc2bab.zip
sudo: improve time restrictions debug messages
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb_sudo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c
index 65481f136..d7d7fe0bb 100644
--- a/src/db/sysdb_sudo.c
+++ b/src/db/sysdb_sudo.c
@@ -154,6 +154,14 @@ static errno_t sysdb_sudo_check_time(struct sysdb_attrs *rule,
*result = true;
}
+ if (result) {
+ DEBUG(SSSDBG_TRACE_ALL, ("Rule [%s] matches time restrictions\n",
+ name));
+ } else {
+ DEBUG(SSSDBG_TRACE_ALL, ("Rule [%s] does not match time "
+ "restrictions\n", name));
+ }
+
ret = EOK;
done:
talloc_free(tmp_ctx);