Skip to content

Commit

Permalink
Fix check for values of expiration limits
Browse files Browse the repository at this point in the history
There were inconsistencies between what sssd.conf manpage said
and what the code enforces.
  • Loading branch information
jhrozek authored and sgallagher committed Feb 25, 2010
1 parent 52e080e commit 980020c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/man/sssd.conf.5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@
Number of days entries are left in cache after
last successful login before being removed during
a cleanup of the cache. 0 means keep forever.
The value of this parameter must be bigger than
offline_credentials_expiration.
The value of this parameter must be greater than or
equal to offline_credentials_expiration.
</para>
<para>
Default: 0 (unlimited)
Expand Down
2 changes: 1 addition & 1 deletion src/providers/ldap/ldap_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ int ldap_get_options(TALLOC_CTX *memctx,
goto done;
}
if (offline_credentials_expiration && account_cache_expiration &&
offline_credentials_expiration >= account_cache_expiration) {
offline_credentials_expiration > account_cache_expiration) {
DEBUG(1, ("Value of %s (now %d) must be larger "
"than value of %s (now %d)\n",
opts->basic[SDAP_ACCOUNT_CACHE_EXPIRATION].opt_name,
Expand Down

0 comments on commit 980020c

Please sign in to comment.