Skip to content

Commit

Permalink
sudo: print rule name if notBefore or notAfter attribute is missing
Browse files Browse the repository at this point in the history
...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.
  • Loading branch information
pbrezina authored and jhrozek committed Dec 5, 2012
1 parent fd1d89e commit a3cbc57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/responder/sudo/sudosrv_get_sudorules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a3cbc57

Please sign in to comment.