13b1d270fb72cf2c2e18f0b2a59cb424c51f7675 |
|
29-Nov-2016 |
Lukas Slebodnik <lslebodn@redhat.com> |
CONFDB: Supress clang false passitive warnings
The errno is macro expandee into '(*__errno_location ())'.
The reason is that errno is private in glibc and and the
function __errno_location return address of private errno.
sh$ objdump -T /lib64/libc.so.6 | grep errno
00000010 g D .tbss 00000004 GLIBC_PRIVATE errno
000208a0 g DF .text 00000011 GLIBC_2.2.5 __errno_location
001366b0 g DF .text 0000005f GLIBC_2.2.5 clnt_sperrno
00136710 g DF .text 00000074 GLIBC_2.2.5 clnt_perrno
00000064 g D .tbss 00000004 GLIBC_PRIVATE __h_errno
0011aad0 g DF .text 00000011 GLIBC_2.2.5 __h_errno_location
It looks like clang static analyzer assume that value can be
changed due to function call.
errno = 0;
val = strtol(values[0], NULL, 0);
// Taking true branch => assuming "errno != 0"
if (errno) {
ret = errno;
// errno was stored to ret but clang later assumes
// that ret can be 0
goto failed;
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> |
052f8aa2034f7b091097dc5fdafc201b7d684525 |
|
29-Jun-2016 |
Simo Sorce <simo@redhat.com> |
ConfDB: Add helper function to get "subsections"
The secrets database will have "subsections", ie sections that are in the
"secrets" namespace and look like this: [secrets/<path>]
This function allows to source any section under secrets/ or under any
arbitrary sub-path.
Related:
https://fedorahosted.org/sssd/ticket/2913
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
8b2a31634764168183506925a4b9f461afdba6f3 |
|
27-Jun-2016 |
Michal Židek <mzidek@redhat.com> |
confdb: Check for config file errors on sssd startup
Resolves:
https://fedorahosted.org/sssd/ticket/2028
Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
877b92e80bde510d5cd9f03dbf01e2bcf73ab072 |
|
23-Oct-2015 |
Michal Židek <mzidek@redhat.com> |
util: Update get_next_domain's interface
Update get next domain to be able to
include disbled domains and change the
interface to accept flags instead of
multiple booleans.
Ticket:
https://fedorahosted.org/sssd/ticket/2673
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
c299f997e20011536e365bc18e59e73f68629d2c |
|
14-Oct-2015 |
Petr Cech <pcech@redhat.com> |
REFACTOR: umask(0177) --> umask(SSS_DFL_UMASK)
There are many calls of umask function with 0177 argument. This patch
add new constant SSS_DFL_UMASK which stands for 0177. So all occurences
of umask(0177) (except responder code) are replaced by constant
SSS_DFL_UMASK.
Resolves:
https://fedorahosted.org/sssd/ticket/2424
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
3fb1ee96f508784d7e06f079111d4d32d401a99b |
|
30-Sep-2015 |
Pavel Reichl <preichl@redhat.com> |
confdb: warn if memcache_timeout > than entry_cache
Only group and user records are cached in memory cache so only timeouts
for those are checked.
Resolves:
https://fedorahosted.org/sssd/ticket/2176
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
b5825c74b6bf7a99ae2172392dbecb51179013a6 |
|
21-Sep-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
UTIL: Convert domain->disabled into tri-state with domain states
Required for:
https://fedorahosted.org/sssd/ticket/2637
This is a first step towards making it possible for domain to be around,
but not contacted by Data Provider.
Also explicitly create domains as active, previously we only relied on
talloc_zero marking dom->disabled as false.
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
0aa18cc0bf3447ca734476926724f1632e160807 |
|
06-Jul-2015 |
Pavel Reichl <preichl@redhat.com> |
PAM: authenticate agains cache
Enable authenticating users from cache even when SSSD is in online mode.
Introduce new option `cached_auth_timeout`.
Resolves:
https://fedorahosted.org/sssd/ticket/1807
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
1711cbfd2e36d44af1ae50e3a2beeec3a1f0b5e8 |
|
05-Jun-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
confdb: Add new option subdomain_inherit
Adds a new option subdomain_inherit that would allow administrators to pick
and choose which option to pass to subdomains.
This option is required for:
https://fedorahosted.org/sssd/ticket/2644
as a short-term fix.
The proper solution is described in:
https://fedorahosted.org/sssd/ticket/2599
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
932c3e22e3c59a9c33f30dcc09e6bef257e14320 |
|
08-May-2015 |
Sumit Bose <sbose@redhat.com> |
Add cache_credentials_minimal_first_factor_length config option
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
804df4040eb142f82a44c019c7a55b5ce524583c |
|
11-Mar-2015 |
Michal Zidek <mzidek@redhat.com> |
Use FQDN if default domain was set
https://fedorahosted.org/sssd/ticket/2569
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
04d138472cc086fb7961f0d378852b09961b1a33 |
|
11-Mar-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
Log reason in debug message why ldb_modify failed
Reviewed-by: Sumit Bose <sbose@redhat.com> |
b147a7918a4f9672058da1e0f4e06021d508cd7c |
|
05-Jan-2015 |
Pavel Reichl <preichl@redhat.com> |
CONFDB: Typo in debug message
Reviewed-by: Sumit Bose <sbose@redhat.com> |
4b6fa94d1a00b07c4310678ec721282288a186a0 |
|
28-Nov-2014 |
Michal Zidek <mzidek@redhat.com> |
confdb: Make confdb_set_string accept const char pointer
The last parameter (value) in the confdb_set_string
is not modified, so it makes sense to make it const
to avoid unnecessary warnings or casts.
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
ad132722d6f3393ae1e6d720a222a0f880f2ea54 |
|
04-Nov-2014 |
Pavel Reichl <preichl@redhat.com> |
CONFDB: Detect&fix misconf opt refresh_expired_interval
Related to:
https://fedorahosted.org/sssd/ticket/2102
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
e7cc651468ab8b1462a6a39e712e7b8d36a3a166 |
|
20-Oct-2014 |
Sumit Bose <sbose@redhat.com> |
confdb: add has_views and view_name to sss_domain_info
To let the responders know which view is applied and to make view
handling more efficiently especially when no view is applied/available
two new member are added to the sss_domain_info struct.
view_name is the name of the view if available. has_views is only true
if the client has a specific view applied, i.e. it is false for the case
when there are no views at all (e.g. plain LDAP provider) or the client
has the FreeIPA default view. This allows the responders to easily
bypass any view related code.
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
3ac7c4fe618ede980a4df8d90341ef1fd0f1f62f |
|
05-Sep-2014 |
William B <william@adelaide.edu.au> |
SSS_CACHE: Allow sss_cache tool to flush SSH hosts cache
Resolves:
https://fedorahosted.org/sssd/ticket/2358
Signed-off-by: Jan Cholasta <jcholast@redhat.com>
Reviewed-by: Jan Cholasta <jcholast@redhat.com>
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
2b94ab415b30861f42b68725d9231905baf8c3bd |
|
29-Jul-2014 |
Michal Zidek <mzidek@redhat.com> |
Remove unused function confdb_set_bool
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
ff22e829fd73fc53027d1e6ca005a9ac334086dd |
|
29-Jul-2014 |
Michal Zidek <mzidek@redhat.com> |
case_sensitivity = preserving
If case_sensitivity is set to 'preserving', getXXnam
returns name attribute in the same format as
stored in LDAP.
Fixes:
https://fedorahosted.org/sssd/ticket/2367
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
5328aaeea84268b6d4e26cd33a2b3e8ea89bc349 |
|
29-Jul-2014 |
Michal Zidek <mzidek@redhat.com> |
Add function confdb_set_string.
Part of fix for:
https://fedorahosted.org/sssd/ticket/2367
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
ae0a5011e2644eaa482ea1b9e1451eff05c676b9 |
|
02-Jun-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
NSS: Add option to expand homedir template format
LDAP server can contain template for home directory instead of plain string.
This patch adds new expand option "%H", which will be replaced with value
from configuration option homedir_substring (from sssd.conf)
Resolves:
https://fedorahosted.org/sssd/ticket/1853 |
d81f46fb294a6f6f64d3237ab0e0ab01f2c5ea20 |
|
28-May-2014 |
Pavel Březina <pbrezina@redhat.com> |
confdb: add confdb_list_all_domain_names()
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
83bf46f4066e3d5e838a32357c201de9bd6ecdfd |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Update DEBUG* invocations to use new levels
Use a script to update DEBUG* macro invocations, which use literal
numbers for levels, to use bitmask macros instead:
grep -rl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e 'use strict;
use File::Slurp;
my @map=qw"
SSSDBG_FATAL_FAILURE
SSSDBG_CRIT_FAILURE
SSSDBG_OP_FAILURE
SSSDBG_MINOR_FAILURE
SSSDBG_CONF_SETTINGS
SSSDBG_FUNC_DATA
SSSDBG_TRACE_FUNC
SSSDBG_TRACE_LIBS
SSSDBG_TRACE_INTERNAL
SSSDBG_TRACE_ALL
";
my $text=read_file(\*STDIN);
my $repl;
$text=~s/
^
(
.*
\b
(DEBUG|DEBUG_PAM_DATA|DEBUG_GR_MEM)
\s*
\(\s*
)(
[0-9]
)(
\s*,
)
(
\s*
)
(
.*
)
$
/
$repl = $1.$map[$3].$4.$5.$6,
length($repl) <= 80
? $repl
: $1.$map[$3].$4."\n".(" " x length($1)).$6
/xmge;
print $text;
' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
a3c8390d19593b1e5277d95bfb4ab206d4785150 |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Make DEBUG macro invocations variadic
Use a script to update DEBUG macro invocations to use it as a variadic
macro, supplying format string and its arguments directly, instead of
wrapping them in parens.
This script was used to update the code:
grep -rwl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e \
'use strict;
use File::Slurp;
my $text=read_file(\*STDIN);
$text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs;
print $text;' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
fd520622529e26682eb8fa4c5355db18399c3121 |
|
09-Feb-2014 |
Pavel Reichl <preichl@redhat.com> |
CONFDB: fail if there are domains with same name
Fail to start sssd if the domains given in the domains option are the same as
or only differ in case.
Resolves:
https://fedorahosted.org/sssd/ticket/2171
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> |
cd4cc8d8829f1ea5257bf874b91980368114275f |
|
25-Oct-2013 |
Pavel Březina <pbrezina@redhat.com> |
dp: make subdomains refresh interval configurable
This patch makes the refresh of available subdomains configurable.
New option:
subdomain_refresh_interval (undocumented)
Resolves:
https://fedorahosted.org/sssd/ticket/1968 |
33c865412732554ef255e93c4e7a58b0bce963c6 |
|
28-Aug-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
Add a new option to control subdomain enumeration |
0cf0e2d758d09e9b314ba72ce6638df10b258462 |
|
10-Jun-2013 |
Pavel Březina <pbrezina@redhat.com> |
back end: add refresh expired records periodic task
https://fedorahosted.org/sssd/ticket/1713
Add new option refresh_expired_interval. |
e41ac95891837e8a818f529cef9376cb190b8507 |
|
01-Mar-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
Don't treat 0 as default for pam_pwd_expiration warning |
9807576b4cb1d022e918b45bf7dabbe9b41b1c87 |
|
21-Feb-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
Fix the krb5 password expiration warning
https://fedorahosted.org/sssd/ticket/1808 |
bba1a5fd62cffcae076d1351df5a83fbc4a6ec17 |
|
10-Feb-2013 |
Simo Sorce <simo@redhat.com> |
Change the way domains are linked.
- Use a double-linked list for domains and subdomains.
- Never remove a subdomain, simply mark it as disabled if it becomes
unused.
- Rework the way subdomains are refreshed.
Now sysdb_update_subdomains() actually updates the current subdomains
and marks as disabled the ones not found in the sysdb or add new ones
found. It never removes them.
Removal of missing domains from sysdb is deferred to the providers,
which will perform it at refresh time, for the ipa provider that is
done by ipa_subdomains_write_mappings() now.
sysdb_update_subdomains() is then used to update the memory hierarchy
of the subdomains.
- Removes sysdb_get_subdomains()
- Removes copy_subdomain()
- Add sysdb_subdomain_delete() |
0232747f04b650796db56fd7b487aee8a96fab03 |
|
10-Feb-2013 |
Simo Sorce <simo@redhat.com> |
Add function get_next_domain()
Use this function instead of explicitly calling domain->next
This function allows to get the next primary domain or to descend into the
subdomains and replaces also get_next_dom_or_subdom() |
1d262e93850e2be65a774da070600947f1b75153 |
|
22-Jan-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
Convert the value of pwd_exp_warning to seconds
When read from the domain section, the pwd_expiration_warning was
properly converted to seconds from days, but not the
pam_pwd_expiration_warning set in the [pam] section.
https://fedorahosted.org/sssd/ticket/1773 |
c14184c07634801cda7864aa17c6fa8dc9ab43d1 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Move mpg flag to the domain where it belongs
A sysdb contains now multiple domains, but the mpg property is a
property of a specific domain not of the underlying database. |
04759b59e71c78ab23b84d13dd29d9c6dd680adb |
|
02-Jan-2013 |
Michal Zidek <mzidek@redhat.com> |
failover: Protect against empty host names
Added new parameter to split_on_separator that allows to skip
empty values.
The whole function was rewritten. Unit test case was added to
check the new implementation.
https://fedorahosted.org/sssd/ticket/1484 |
59f136cd254d1acf2991c97221eb08803784777d |
|
15-Nov-2012 |
Paul B. Henson <henson@acm.org> |
Add ignore_group_members option.
https://fedorahosted.org/sssd/ticket/1376 |
66318dfe1e7138ff3fc780c4b3f0b29c4b2d8712 |
|
18-Oct-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Allow setting the default_shell option per-domain as well
https://fedorahosted.org/sssd/ticket/1583 |
695bca9d2f73096254308e0883fcc74b2631850e |
|
20-Jul-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
NSS: Add override_shell option
If override_shell is specified in the [nss] section, all users
managed by SSSD will have their shell set to this value. If it is
specified in the [domain/DOMAINNAME] section, it will apply to
only that domain (and override the [nss] value, if any).
https://fedorahosted.org/sssd/ticket/1087 |
a6cbaf2932762e3e191a6bec252afec3c91bf97c |
|
06-Jul-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
CONFDB: Add the ability to set a boolean value in the confdb |
da9fd6373b94a49b748542ab568997b9e2421972 |
|
29-Jun-2012 |
Pavel Březina <pbrezina@redhat.com> |
confdb: add entry_cache_sudo_timeout option |
efc4a645d50f68d2a289c7e8a05bedf051d3c67d |
|
25-Jun-2012 |
Sumit Bose <sbose@redhat.com> |
Set default for subdomain_homedir |
387349ae092f6dbeb8e4bca291a772695836629c |
|
20-Jun-2012 |
Stef Walter <stefw@gnome.org> |
Move some debug lines to new debug log levels
* These are common lines of debug output when starting
up sssd
https://bugzilla.redhat.com/show_bug.cgi?id=811113 |
3db7aca0479a30f4a1e66a35b4b7b7bcfd81a78f |
|
11-May-2012 |
Ariel Barria <arielb@fedoraproject.org> |
Bad check for id_provider=local and access_provider=permit
documentation-access_provider
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com> |
f6dbb235373b122ae15643ef5dbbe821ee1307d9 |
|
10-May-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
NSS: Add fallback_homedir option
This option is similar to override_homedir, except that it will
take effect only for users that do not have an explicit home
directory specified in LDAP.
https://fedorahosted.org/sssd/ticket/1250 |
bf8cce77a35cb0a3cdb0d21fb9c39b7b6372bc11 |
|
04-May-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Modify behavior of pam_pwd_expiration_warning
New option pwd_expiration_warning is introduced which can be set per
domain and can override the value specified by the original
pam_pwd_expiration_warning.
If the value of expiration warning is set to zero, the filter isn't
apllied at all - if backend server returns the warning, it will be
automatically displayed.
Default value for Kerberos: 7 days
Default value for LDAP: don't apply the filter
Technical note: default value when creating the domain is -1. This is
important so we can distinguish between "no value set" and 0. Without
this possibility it would be impossible to set different values for LDAP
and Kerberos provider. |
53dae47b4e8995be624c74cb2d4838c6856b0ba4 |
|
24-Apr-2012 |
Pavel Březina <pbrezina@redhat.com> |
fix copy and paste error in comment |
8ccb0de226ccb9330f5a6865de487d6f0313902d |
|
24-Apr-2012 |
Jan Zeleny <jzeleny@redhat.com> |
New config option for subdomains
subdomain_homedir - if set, it contains default value, can be overriden
in further processing |
d3f2fd9cb21cc10dce663a2f7d0deda07074e44e |
|
24-Apr-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Add conn_name to allow different names for domains and connections |
3bea01f01d76e1e95a8239c0d3f67073992136a1 |
|
22-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Don't give memory context in confdb where not needed |
9e80079370ff3b943832adc3c5ef430e64be0a0c |
|
06-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: responder |
bd92e8ee315d4da9350b9ef0358c88a7b54aeebe |
|
04-Feb-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
NSS: Add individual timeouts for entry types
https://fedorahosted.org/sssd/ticket/1016 |
f1055c2a8036bb11b5788f969078edee8ba5326e |
|
20-Dec-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Error out if local domain is case insensitive
https://fedorahosted.org/sssd/ticket/1104 |
b3b42c49656e192787a983aaa8b9ec744ba4cb9d |
|
16-Dec-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Use the case sensitivity flag in responders |
324fb26ba803a999bedc29e93c46c84f27abf5b7 |
|
23-May-2011 |
Sumit Bose <sbose@redhat.com> |
Set _GNU_SOURCE globally |
d9d716b547d256c03df97b0ff8282349a0f365ad |
|
20-May-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Add a new option to override home directory value
https://fedorahosted.org/sssd/ticket/551 |
54af51d2129d29258108a6dbf072a82c930bf399 |
|
20-May-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Add a new option to override primary GID number
https://fedorahosted.org/sssd/ticket/742 |
d94c1a6b8badd8e4cf94815ad14ce6c0c715e9d3 |
|
13-Oct-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Store entry_cache_timeout in sss_domain_info object
This is useful so that the NSS responder can identify an domain's
entry timeout for expiring the memory cache for a lookup such as
with netgroups. |
e44e99804519b37852ee9ea24d18d2d2710110ce |
|
15-Sep-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Use a different min_id for local domain
When we changed the default min_id to be 1, we forgot about the local
domain. It makes sense to keep the minimum id larger there. |
4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619 |
|
08-Sep-2010 |
Jan Zeleny <jzeleny@redhat.com> |
Dead assignments cleanup in various places in SSSD
Three assignments deleted, two return code inspection added.
Also found and fixed one critical bug caused by dead assignment.
Ticket: #590 |
8f4aaae28c88c707853f8f28d8babc4efe0c1bf6 |
|
04-Mar-2010 |
Martin Nagy <mnagy@redhat.com> |
Add forgotten \n in DEBUG statements
Logs from confdb with missing '\n' in the DEBUG statements annoyed me so
I decided to fix them. I also made a quick grep through the code and
found other places so I fixed them too. |
70f4c2a1c476804b4fc409923b6fb7b0c2d2aaf4 |
|
04-Mar-2010 |
Martin Nagy <mnagy@redhat.com> |
Make confdb_init's confdb_location parameter const |
c24dd6734f36f13df84d9fdb28ce1be45451a41d |
|
23-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Revert "Change default for enumeration to TRUE"
This reverts commit 75a9f18ad8ac6e885ac34cdeebc4d8f8734713f8. |
94cafd6f5b63aac3ad084d14fa3be24213374021 |
|
23-Feb-2010 |
Sumit Bose <sbose@redhat.com> |
Fix file permissions of config.ldb |
1c48b5a62f73234ed26bb20f0ab345ab61cda0ab |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Rename server/ directory to src/
Also update BUILD.txt |