summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-12-04 14:25:59 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-06 00:03:27 +0100
commita3cbc575faf3ddd885536e08712d0deb1394386d (patch)
treecf267ea29c1a45aeb8ad25c910feed3b0b255f5d
parentfd1d89ed7fa1500148f637546478e6a78bd6f879 (diff)
downloadsssd-a3cbc575faf3ddd885536e08712d0deb1394386d.tar.gz
sssd-a3cbc575faf3ddd885536e08712d0deb1394386d.tar.xz
sssd-a3cbc575faf3ddd885536e08712d0deb1394386d.zip
sudo: print rule name if notBefore or notAfter attribute is missing
...and if sudo_timed = true. https://fedorahosted.org/sssd/ticket/1688 A comma was missing in attribute list. This caused concatenation of the two attributes so we requested one attribute called "objectClasscn". This doesn't affect functionality, only debug messages.
-rw-r--r--src/responder/sudo/sudosrv_get_sudorules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c
index f79d47dcb..5a78000c8 100644
--- a/src/responder/sudo/sudosrv_get_sudorules.c
+++ b/src/responder/sudo/sudosrv_get_sudorules.c
@@ -574,7 +574,7 @@ static errno_t sudosrv_get_sudorules_from_cache(TALLOC_CTX *mem_ctx,
unsigned int flags = SYSDB_SUDO_FILTER_NONE;
struct sysdb_attrs **rules = NULL;
size_t num_rules = 0;
- const char *attrs[] = { SYSDB_OBJECTCLASS
+ const char *attrs[] = { SYSDB_OBJECTCLASS,
SYSDB_SUDO_CACHE_AT_CN,
SYSDB_SUDO_CACHE_AT_USER,
SYSDB_SUDO_CACHE_AT_HOST,