50d9424d38efe2421a60aa622fb342bea29ee4eb |
|
18-Jan-2018 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Use sysdb_domain_dn instead of raw ldb_dn_new_fmt
Using ldb should be as much as an implementation detail as possible.
Plus, it looks weird if one of the branch uses a sysdb function while
another code branch uses a raw ldb call.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
3994e8779d16db3e9fb30f03e5ecf5e811095ac2 |
|
23-Mar-2017 |
Sumit Bose <sbose@redhat.com> |
sysdb: add sysdb_attrs_copy()
Related to https://pagure.io/SSSD/sssd/issue/3050
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
0be56bb4a2e3cb833396878dee05094c6b83031e |
|
08-Nov-2016 |
Petr Cech <pcech@redhat.com> |
SYSDB: Adding message about reason why cache changed
Resolves:
https://fedorahosted.org/sssd/ticket/3060
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
3931c6612fae5ad32ad81a59f77d77c2d896ebe1 |
|
07-Jul-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Add a utility function to return a list of qualified names
Adds a utility function the LDAP provider can use. This is different
from sss_create_internal_fqname_list in the sense that the LDAP provider
passes in the attribute name that contains the name attribute value.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
40de79d69860ec7f04bf7795bd88b641ec42fd23 |
|
23-Jun-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Check if group attributes differ before saving a group
Adds a new function sysdb_entry_attrs_diff() used in group saving code.
This function is used to check if the result of updating a group would
result in actually changing the sysdb entry -- often, we would try to
dump the same data to the cache during update. If that's the case, the
update code now only updates the timestamp cache, avoiding costly
writes.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
a257259b05d62ebe548b6c798a3aa03a97dbc0c2 |
|
23-Jun-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: If modifyTimestamp is the same, only update the TS cache
Resolves:
https://fedorahosted.org/sssd/ticket/2602
If the entry being saved contains the original modifyTimestamp attribute
and the modifyTimestamp attribute is the same as the one we already
saved to the timestamp cache, only the expire timestamps in the
asynchronous timestamp cache will be bumped and the sysdb code will
avoid writes to the main cache completely. If the modifyTimestamp is
either missing or differs, we assume the entry had changed and do a full
write to the main cache.
Also amends the generic sysdb_set_attrs* and similar functions that
their results is also reflected in the timestamps cache.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
dd285415d7a8d8376207960cfa3e977524c3b98c |
|
23-Jun-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Search the timestamp caches in addition to the sysdb cache
When a sysdb entry is searched, the sysdb cache is consulted first
for users or groups. If an entry is found in the sysdb cache, the
attributes from the timestamp cache are merged to return the full and
up-to-date set of attributes.
The merging is done with a single BASE search which is a direct lookup
into the underlying key-value database, so it should be relatively fast.
More complex merging is done only for enumeration by filter which is
currently done only via the IFP back end and should be quite
infrequent, so I hope we can justify a more complex merging there.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
6e9d7cbe43fdfc866b18f9ef0779bbfc10ad6f3a |
|
23-Jun-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Move sysdb initialization into a new module sysdb_init.c
The sysdb initialization was in the sysdb.c module. With adding
initialization of the timestamp cache, this module would become too big
with too many private functions meant only for initialization.
This patch only moves code around, there are no functional changes to
the initialization.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
6dcbfe52d5e64205c0d922f3e89add066b42c496 |
|
10-Jun-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Add systemtap probes to track sysdb transactions
Actually adds marks for sysdb transactions that receive the transaction
nesting level as an argument. The nesting is passed on from probes to
marks along with a human-friendly description.
The transaction commit is decorated with two probes, before and after.
This would allow the caller to distinguish between the time we spend in
the transaction (which might be important, because if a transaction is
active on an ldb context, even the readers are blocked before the
transaction completes) and the time we spend commiting the transaction
(which is important because that's when the disk writes occur)
The probes would be installed into /usr/share/systemtap/tapset on RHEL
and Fedora. This is in line with systemtap's paths which are described
in detail in "man 7 stappaths".
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
bd93ef2db6d24946ebf98a23fa18d34d45f6b072 |
|
10-Jun-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Track transaction nesting in sysdb_ctx
Adds an integer that tracks how deeply nested we are in sysdb
transactions. This will become useful later, because generally we are
only interested in level-0 transactions when probing, so we'll want to
pass the transaction nesting to the systemtap probes.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
6cdeb0923c16e3fafe21aaadca6dac1d71474c31 |
|
09-Jun-2016 |
Sumit Bose <sbose@redhat.com> |
sysdb: add sysdb_attrs_add_base64_blob()
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
49d84c926b00ba1368372cdec255bceb58d66f43 |
|
31-May-2016 |
Fabiano Fidêncio <fidencio@redhat.com> |
sysdb: add sysdb_{add,replace,delete}_ulong()
As the add_ulong() convenience can add, replace or remove a unsigned
long according to the operation received as its argument, some confusion
can easily happen due to its misleading name.
In order to improve the explicitness of our code, let's introduce
sysdb_add_ulong(), sysdb_replace_ulong() and sysdb_delete_ulong().
These new functions are basically wrappers of add_ulong() (now
sysdb_ldb_msg_ulong_helper()), calling it using the proper flag
according to each function.
Any code previously using add_ulong() is now adapted to use these brand
new functions.
Related: https://fedorahosted.org/sssd/ticket/1656
Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
Reviewed-by: Petr Cech <pcech@redhat.com> |
7b9a4a89cb92a0281d73a2c2e79f5eeb317e1149 |
|
31-May-2016 |
Fabiano Fidêncio <fidencio@redhat.com> |
sysdb: move add_ulong() convenience to sysdb.c
Considering that sysdb.c is about utilities around our cache and that
sysdb_ops.c is about operations on objects, seems that add_ulong()
could fit better in sysdb.c.
This move is a suggestion from Jakub Hrozek.
Related: https://fedorahosted.org/sssd/ticket/1656
Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
Reviewed-by: Petr Cech <pcech@redhat.com> |
a928f7a6bd7681db6e26cba3eb7da22d14288737 |
|
31-May-2016 |
Fabiano Fidêncio <fidencio@redhat.com> |
sysdb: add sysdb_{add,replace,delete}_string()
As the add_string() convenience can add, replace or delete a string
according to the operation received as its argument, some confusion can
easily happen due to its misleading name.
In order to improve the explicitness of our code, let's introduce
sysdb_add_string(), sysdb_replace_string() and sysdb_delete_string().
These new functions are basically wrappers of add_string() (now
sysdb_ldb_msg_string_helper()), calling it using the proper flag
according to each function.
Any code previously using add_string() is now adapted to use these brand
new functions.
Resolves: https://fedorahosted.org/sssd/ticket/1656
Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
Reviewed-by: Petr Cech <pcech@redhat.com> |
5b1e73bc40a55f2095660423a2a4623a93de1ef8 |
|
31-May-2016 |
Fabiano Fidêncio <fidencio@redhat.com> |
sysdb: move add_string() convenience to sysdb.c
Considering that sysdb.c is about utilities around our cache and that
sysdb_ops.c is about operations on objects, seems that add_string()
could fit better in sysdb.c.
This move is a suggestion from Jakub Hrozek.
Related: https://fedorahosted.org/sssd/ticket/1656
Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
Reviewed-by: Petr Cech <pcech@redhat.com> |
68abbe716bed7c8d6790d9bec168ef44469306a1 |
|
19-Jan-2016 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: make sudo sysdb interface more reusable
Reviewed-by: Sumit Bose <sbose@redhat.com> |
aedc71fe8360a51785933523f14bb5c4e7e2c38b |
|
20-Nov-2015 |
Sumit Bose <sbose@redhat.com> |
IPA: fix override with the same name
If the user name of a AD user is overridden with the name itself in an
IPA override object SSSD adds this name twice to the alias list causing
an ldb error when trying to write the user object to the cache. As a
result the user is not available.
This patch makes sure that there are no duplicated alias names.
Resolves https://fedorahosted.org/sssd/ticket/2874
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
e61b0e41cb44004d2b260ad9d05802995f7bcb2e |
|
19-Aug-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Index the objectSIDString attribute
Reviewed-by: Michal Židek <mzidek@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> |
61c8d13e55ebafc28da1b0b5ad9ae578d687e288 |
|
08-Mar-2015 |
Pavel Březina <pbrezina@redhat.com> |
be_refresh: support groups
Resolves:
https://fedorahosted.org/sssd/ticket/2346
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
e77d6366ff9e49dbbb607f1709f1ae4190b99489 |
|
08-Mar-2015 |
Pavel Březina <pbrezina@redhat.com> |
be_refresh: support users
Resolves:
https://fedorahosted.org/sssd/ticket/2346
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
c9eaf8c1e02c155b7ca7ffb2b1edade8a23ce1ff |
|
02-Dec-2014 |
Pavel Reichl <preichl@redhat.com> |
SYSDB: sysdb_get_bool() return ENOENT & unit tests
sysdb_get_bool() return ENOENT if no result is found.
Unit test for sysdb_get_bool() & sysdb_set_bool() was added.
This patch also fixes ldap_setup_enumeration() to handle ENOENT returned by
sysdb_has_enumerated().
Resolves:
https://fedorahosted.org/sssd/ticket/1991
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
0887c35bdb85adf0a4376dc8963294ea5a9d6da6 |
|
22-Oct-2014 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Allow calling chown on the sysdb file from monitor
Sysdb must be accessible for the nonroot sssd
processes.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
8a2a503fa5c01ea037d28b7c902b8821a11084bd |
|
16-Oct-2014 |
Sumit Bose <sbose@redhat.com> |
sysdb: add sysdb_attrs_add_val_safe() and sysdb_attrs_add_string_safe()
sysdb_attrs_add_val_safe() works like sysdb_attrs_add_val() but checks
if the attribute value to add already exists. In this case the value
list is not changed. This is useful if values are added from different
sources at different times to avoid LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS
errors from ldb_modify() later on.
sysdb_attrs_add_string_safe() does the same for string arguments
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
d7d3ee1b8ab7a05129c83da8a185351d7c751c1c |
|
06-Oct-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: move sysdb_get_real_name() from sysdb.c to sysdb_search.c
The sysdb.c should be reserved for utility and setup functions. Search
functions belong to sysdb_search.c Keeping functions in specialized
modules helps to maintain nice dependencies and in overall makes unit
testing easier.
Moreover, the function was not unit tested, which needed fixing.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
84d50b69d286f041aa96a948b008d311d8755075 |
|
01-Sep-2014 |
Sumit Bose <sbose@redhat.com> |
sysdb_get_real_name: allow UPN as input |
1a11b1a638b95c8516b21d5c6912da526298feb7 |
|
23-Jun-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
SYSDB: Remove useless NULL test.
There is a test for NULL after calling talloc_strndup
and variable version was used a few times in strcmp before debug message.
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
9ad2756fcf4df945f4cd09238e3f9fe707b0b70c |
|
20-Jun-2014 |
Sumit Bose <sbose@redhat.com> |
sysdb: make canonicalUserPrincipalName case-insensitive
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
21fc2ea7d4a9944582ffd4d11500faf4bddae835 |
|
18-Jun-2014 |
Pavel Reichl <preichl@redhat.com> |
SYSDB: utility call sysdb_attrs_add_lower_case_string
Resolves:
https://fedorahosted.org/sssd/ticket/2056
Reviewed-by: Sumit Bose <sbose@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> |
37171a92dc9c5e4fe1a0663901fc965b49a78151 |
|
29-Jan-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
DB: Add sss_ldb_el_to_string_list |
fb4435785f92712840efb107700452598371ce77 |
|
19-Dec-2013 |
Sumit Bose <sbose@redhat.com> |
Add sysdb_attrs_get_int32_t |
48eb2ca157f7cdc625d0eacdcdc085a3fe1a0fc8 |
|
19-Dec-2013 |
Sumit Bose <sbose@redhat.com> |
Add sysdb_attrs_add_lc_name_alias |
05bbf81c6b7e0c0ddb7a9d1c66ad2e19e9e3b6c9 |
|
27-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
Fix parameter name.
We use '_' as prefix for output parameters. In function
sysdb_get_rdn we wrongly used this prefix for input
parameter, which caused some confusion when reading
the code. |
e2ac9be4f293b96f3c8992f1171e44bc1da5cfca |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop redundant sysdb_ctx parameter from sysdb.c |
b3292840ebaa747a9fd596ff47cc5d18198361d0 |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter from the sysdb_search module |
2ba16c5a5c4b6d3cd2a44179186ec60eda828bcd |
|
05-Mar-2013 |
Michal Zidek <mzidek@redhat.com> |
Remove the alt_db_path parameter of sysdb_init
This parameter was never used.
https://fedorahosted.org/sssd/ticket/1765 |
956309e24c32cd0886736bf065a27d5bdd200a77 |
|
26-Feb-2013 |
Jan Engelhardt <jengelh@inai.de> |
sysdb: try dealing with binary-content attributes
https://fedorahosted.org/sssd/ticket/1818
I have here a LDAP user entry which has this attribute
loginAllowedTimeMap::
AAAAAAAAAP///38AAP///38AAP///38AAP///38AAP///38AAAAAAAAA
In the function sysdb_attrs_add_string(), called from
sdap_attrs_add_ldap_attr(), strlen() is called on this blob, which is
the wrong thing to do. The result of strlen is then used to populate
the .v_length member of a struct ldb_val - and this will set it to
zero in this case. (There is also the problem that there may not be
a '\0' at all in the blob.)
Subsequently, .v_length being 0 makes ldb_modify(), called from
sysdb_set_entry_attr(), return LDB_ERR_INVALID_ATTRIBUTE_SYNTAX. End
result is that users do not get stored in the sysdb, and programs like
`id` or `getent ...` show incomplete information.
The bug was encountered with sssd-1.8.5. sssd-1.5.11 seemed to behave
fine, but that may not mean that is the absolute lower boundary of
introduction of the problem. |
b353437811527daf305fceef5f07e990c50d62ca |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Kill sysdb->domain
Finally remove this upside-down dependency. |
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. |
46675b5033169e1e954cd570413ce85b2c5e11fc |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Pass the domain to upgrade functions |
043bda72889e9ef0c48b80b21c99e9e18c5f49d7 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain arguemnt to sysdb_get_real_name() |
80c6afa474d8a1e0198832bddfe5da75a9818b29 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_has/set_enumerated() |
58fd3aa25c5292bc67432647ab7e5059439fcc6d |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Pass domain to sysdb_get<pw/gr>nam() functions
Also allows us to remove sysdb_subdom_get<pw/gr>nam() wrappers and restore
fqnames proper value in subdomains, by testing for a parent domain being
present or not. |
73120327cc136229d56d08f7f8c5e8df4129c1e3 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Upgrade DB and move ranges into top level object |
9675bccabff4e79d224f64611ad9ff3e073b488e |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_custom_subtree_dn() require a domain. |
de526c8425886ca3bed8f07a0f092ba5ac325654 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_custom_dn() require a domain. |
4b49384056874e7999d8338ce5288f3d5c27a7b8 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_domain_dn() require a domain. |
2ee09a30b020916ee7bf2f61f993ce7844897c1f |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_netgroup_base_dn() require a domain. |
7c974e792beef952ceb19a01775c6d0ee71a1253 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_netgroup_dn() require a domain explictly. |
52c72ae8587d8d47393a891ccd4ef06bd4bef856 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_group_dn() require a domain explictly. |
3613cc1eba1337256a2d06ba7a84532156139ccd |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_user_dn() require a domain explictly. |
1e6f2180724de4722a5218826c9401181168d9d4 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove the sysdb_ctx_get_domain() function.
We are deprecating sysdb->domain so kill the function that gives access to
this member as we should stop relying on it being available (or correct). |
234958be042980242fff6da936af674da877c5ef |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Refactor single domain initialization
Bring it out of sysdb, which will slowly remove internal dependencies on
domains and instead will always require them to be passed by callers. |
72aa8e7b1d234b6b68446d42efa1cff22b70c81b |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Refactor sysdb initialization
Change the way sysdbs are initialized. Make callers responsible for providing
the list of domains.
Remove the returned array of sysdb contexts, it was used only by sss_cache
and not really necessary there either as that tool can easily iterate the
domains.
Make sysdb ctx children of their respective domains.
Neither sysdb context nor domains are ever freed until a program is done so
there shouldn't be any memory hierarchy issue. As plus we simplify the code by
removing a destructor and a setter function. |
7b524a0fdaa3a20c6c00cd703feec5a0ce365535 |
|
08-Jan-2013 |
Sumit Bose <sbose@redhat.com> |
Translate LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS to EEXIST
Currently only the LDB error code indicating that an entry already
exists is translated to EEXIST. To make debugging easier and return a
better indication of the reason for an error in the logs this patch
translates the LDB error code for an already existing attribute or value
to EEXIST as well. |
ae86a405b8f5b8be3d63648555c6c1430794ac71 |
|
28-Nov-2012 |
Michal Zidek <mzidek@redhat.com> |
Null pointer dereferenced.
https://fedorahosted.org/sssd/ticket/1674 |
d096233fe7610186ee12f41f97ca9602a3768405 |
|
19-Nov-2012 |
Simo Sorce <simo@redhat.com> |
Handle conversion to fully qualified usernames
In subdomains we have to use fully qualified usernames.
Unfortunately we have no other good option than simply removing
caches for users of subdomains.
This is because the memberof plugin does not support the rename operation. |
4c9a85ab708ec7debecad51e4240e04d8bc6ca4e |
|
19-Nov-2012 |
Ondrej Kos <okos@redhat.com> |
Display more information on DB version mismatch
https://fedorahosted.org/sssd/ticket/1589
Added check for determining, whether database version is higher or
lower than expected. To distinguish it from other errors it uses
following retun values (further used for appropriate error message):
EMEDIUMTYPE for lower version than expected
EUCLEAN for higher version than expected
When SSSD or one of it's tools fails on DB version mismatch, new error
message is showed suggesting how to proceed. |
73550e4cc5abf4c639a65c7c65d68d9dd2ed64f7 |
|
26-Oct-2012 |
Sumit Bose <sbose@redhat.com> |
sysdb: add sysdb_base_dn()
Add a help function which returns the ldb_dn object for the base dn of
the cache. |
3882325ff60f89d0c312e9519bdfd1351978fd73 |
|
05-Oct-2012 |
Jan Cholasta <jcholast@redhat.com> |
SSH: Expire hosts in known_hosts |
95f5e7963a36b7b68859ce91ae4b232088bbaa09 |
|
24-Sep-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Remove unnecessary domain parameter from several sysdb calls
The domain can be read from the sysdb object. Removing the domain string
makes the API more self-contained. |
77f445dbaecc8e792e1ad42e3742800ad141bee0 |
|
24-Sep-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: convert the existing autofs entries during a sysdb upgrade |
adb08b2853bfcba76ebb35b4e7bb4a6403b54239 |
|
20-Sep-2012 |
Michal Zidek <mzidek@redhat.com> |
LDB_ERR_INVALID_ATTRIBUTE_SYNTAX added to sysdb_error_to_errno. |
74c85b07831edb520764bfb0f997576ff355c681 |
|
21-Aug-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
SYSDB: Make sysdb_attrs_get_el_int() public
Also rename it to sysdb_attrs_get_el_ext() |
d3d297c62e0340151da1d4ce1e082dcfcb45b431 |
|
06-Aug-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Use ldb_msg_add_string for simple string additions |
ff0b0caaaceb3060b8024bc76f51cca5681bd995 |
|
20-Jul-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
SYSDB: Add log message for unexpected LDB errors |
266fd9834133e31c51b9e967307a793e5a49258e |
|
18-Jul-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Add function sysdb_attrs_copy_values()
This function copies all values from one sysdb_attrs structure to
another |
c193cdcb43bffc1eac1bde6dfb0311e033e0c12f |
|
31-May-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Ghost members - sysdb upgrade routine
It is remotely possible to have sysdb in an inconsistent state that
might need upgrade. Consider scenario when user asks for group
information. Some fake users are added as a part of this operation.
Before users can be fully resolved and stored properly, SSSD is shut
down and upgrade is performed.
In this case we need to go over all fake user records (uidNumber=0) and
replace each of them with ghost record in all group objects that are stated in
its memberof attribute. |
debccfee089ff6e952733f44c891840b74e243ec |
|
02-May-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: check return value
In addition to testing the number of elements, also check the return
value of sysdb_attrs_get_el. |
e76d78338026fa47dca32eaf7f5c15eabb1b951a |
|
24-Apr-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Sysdb routines for subdomains |
2c9d3ca604743df82f2f3a8a05829c2dee3d97d7 |
|
18-Apr-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Removed unused function sysdb_attrs_users_from_ldb_vals() |
5d7831167ccc418f2dec5d6621ea6f5a20874613 |
|
21-Mar-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Save alias of the primary name, too |
a9b96ea0efe6174a70834efe253fb5eae99e71fa |
|
16-Mar-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
SYSDB: Save only lowercased aliases in case-insensitive domains
https://fedorahosted.org/sssd/ticket/1253 |
b7b50b21d2254a079b1b1c299909483d23db1512 |
|
29-Feb-2012 |
Sumit Bose <sbose@redhat.com> |
Remove sysdb_get_ctx_from_list() |
d2d2d6ae0c436461bcc8f881df059eb036314c44 |
|
29-Feb-2012 |
Sumit Bose <sbose@redhat.com> |
Keep sysdb context in domain info struct |
25a9a1768d2e3587cc68b76a0a5df1e42a2c89ab |
|
01-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: index sudoUser
Most of the the searches in the Sudo responder include the sudoUser
attribute. Indexing it will make the responder faster. |
48b6eab1b369107af0d568e016a87637b7affc55 |
|
31-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
SYSDB: Add sysdb_attrs_get_uint16_t |
ff907ba7a9b5e429de086515642f97a0447e546a |
|
27-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
SYSDB: Add indexes for servicePort and serviceProtocol |
69446016c5b06e67e6a52ca5bc05e3735f6ff5e9 |
|
21-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
SYSDB: Redundant check is redundant.
Coverity 12480 |
6961025be43141b1d1ca4a6a046ce8f3ac94f508 |
|
17-Jan-2012 |
Pavel Březina <pbrezina@redhat.com> |
sysdb_get_bool() and sysdb_get_bool() functions |
f643754db81eeade60485bbe3d80324d889cc4f3 |
|
17-Jan-2012 |
Pavel Březina <pbrezina@redhat.com> |
SUDO Integration review issues |
75a43c7f91fcb27dee75976cc7c094dd5fa589f6 |
|
16-Dec-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Export the function to convert ldb_result to sysdb_attrs
It will be reused later in the sudo responder |
940e033c0c427d02a34347dbd2f4443fa625b111 |
|
16-Dec-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Use the case sensitivity flag in the LDAP provider |
a26ea060ec4001daf5614bd9afcc092d29174662 |
|
16-Dec-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
sysdb_get_real_name helper function |
0387564f38698c5301b76b24eda000c448174171 |
|
02-Nov-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
SYSDB: add index for nameAlias |
c2352a73f52f600d95966ebe0b0819649ba923fa |
|
07-Oct-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
SYSDB: New source file for sysdb upgrade routines |
95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec |
|
03-Oct-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Use explicit base 10 for converting strings to integers
https://fedorahosted.org/sssd/ticket/1013 |
920b227ac810f1a1964bbecfdc4d871a1cfd07ac |
|
28-Sep-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Add sysdb interface to get name aliases |
690ae38fc14acac1e62cac52558eeb263404ceca |
|
25-Aug-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Return the first value of name if the multivalued name attribute does not match RDN
https://fedorahosted.org/sssd/ticket/926 |
e79d23932ef9d52cf4eb32ddec2d0a9b3af9a9eb |
|
15-Aug-2011 |
Jan Zeleny <jzeleny@redhat.com> |
sysdb refactoring: memory context deleted
This patch deletes memory context parameter in those places in sysdb
where it is not necessary. The code using modified functions has been
updated. Tests updated as well. |
8a1738f9379a1b8fb5c95c3df649e014ff5a1434 |
|
15-Aug-2011 |
Jan Zeleny <jzeleny@redhat.com> |
sysdb refactoring: deleted domain variables in sysdb API
The patch also updates code using modified functions. Tests have also
been adjusted. |
237ade4114ae88f87c814d447dfd5aebdbdf72ef |
|
15-Aug-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Added sysdb_ctx_get_domain function |
82c3185b2ccc1e99ff6c6d63d09754cbd0705e6c |
|
15-Aug-2011 |
Jan Zeleny <jzeleny@redhat.com> |
sysdb refactoring: renamed ctx variable to sysdb |
45e673848e528a1447d00ced6019e16e69acb5de |
|
10-Aug-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Fix potential double-free issue
tmp_ctx is a child of ctx. |
7e39ef3f052c5d5394b515fd5dd660e11d5baa7e |
|
10-Aug-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Cancel sysdb upgrade transaction if commit fails |
d9e5e97c90b31b84c3abf6e7ce92176afa950f61 |
|
08-Jul-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Allow NULL memctx in sysdb_custom_subtree_dn
ldb_dn_new_fmt() has a bug and cannot take a NULL memory context |
ba33be9b40ecbe6f98a52025348dbcff43273b40 |
|
02-Jun-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Added sysdb_attrs_get_bool() function |
9dfa22c3925792204b22962851dd44175e1b5735 |
|
04-May-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Make sysdb_ctx_list public structure
Also create a routine to initialize it |
cac20741b68bb87252ad6d98d64f91dbf4885ccf |
|
25-Apr-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Added originalDN to attributes with case-insensitive search
https://fedorahosted.org/sssd/ticket/808 |
3af32f011436727b4c4615b20c0b0913ab7e9e12 |
|
15-Apr-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Reopen the LDB after modifying it
If we change any of the special entries such as indexes or plugins,
we need to close and reopen the LDB to ensure that they take effect. |
f16a4b30d7caef8745949c94bcc88716eb852f7b |
|
15-Apr-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Run all appropriate upgrades
Previously, if we were upgrading from version 0.4 or older, we
would only run sysdb_upgrade_04() and exit, instead of also
running sysdb_upgrade_05() |
854da1d148cce68222c387af72293bfb46b9b8f3 |
|
15-Apr-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Don't leak memory if sysdb_domain_init() fails |
4fdee87041850d6052f655e3c75c5c0a515be207 |
|
13-Apr-2011 |
Simo Sorce <ssorce@redhat.com> |
sysdb: use header defined macros instead of explicit values |
ff265d170e73d7347c718ee6cf690695bba8caeb |
|
23-Mar-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Check result of talloc_strdup() properly
Coverity 10737 |
1972fddb2e375787dfa87c77190346d7c8e2dbd3 |
|
23-Mar-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Don't crash on error if _name parameter unspecified
Coverity 10738 |
dfdad4fa71f0a75e8a8494f5c919ffd8fe2a2959 |
|
23-Mar-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Don't crash if we get a multivalued name without an origDN
Coverity 10740 and 10739 |
24be43b38dc62de571636f04632f00f699112440 |
|
23-Mar-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Add sysdb_attrs_primary_name_list() routine
This routine will replace the use of sysdb_attrs_to_list() for any
case where we're trying to get the name of the entry. It's a
necessary precaution in case the name is multi-valued. |
d86c2d2995933d61fc3c63f74ec260b5c8c75bf9 |
|
23-Mar-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Add sysdb_attrs_primary_name()
This function will check a sysdb_attrs struct for the primary name
of the entity it represents. If there are multiple entries, it
will pick the one that matches the RDN. If none match, it will
throw an error. |
42d8e67c26df2b7660507d26b9a50911bdd3cf18 |
|
23-Mar-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Create sysdb_get_rdn() function
This function takes a DN formatted string and returns the RDN
value from it. |
bd880fde928e0cb0eee5d59e2fd5f26d75698b5c |
|
14-Feb-2011 |
Sumit Bose <sbose@redhat.com> |
Check LDB_MODULES_PATH for sysdb |
29dfae2a89551026f861f1f857187c22e30730c9 |
|
14-Feb-2011 |
Sumit Bose <sbose@redhat.com> |
Introduce sysdb_ldb_connect() |
21f28bdbab10881b9fb0b890dfa15af429326606 |
|
11-Feb-2011 |
Sumit Bose <sbose@redhat.com> |
Make 'make check' look nice again
With current libldb releases 'make check' will print a lot of 'unable to
dlopen' messages although the test will succeed. This patch place the
memberof module into a directory of its own to avoid these messages.
Additionally this patch introduces TESTS_ENVIRONMENT which allows us to
remove the SYSDB_TEST preprocessor definition. |
01bc248f42f1a056091aa3dd99ba9615ba61df6f |
|
11-Feb-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Clear up -Wunused-but-set-variable warnings |
c210c160f6b82b6e2369f2a2fba6ea559ee54dbe |
|
03-Feb-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Add additional indexing for sysdb
Adds an index for dataExpireTimestamp
This is used for determining which users need to be removed during
the cleanup task. If enumeration is enabled (or huge numbers of
users have been cached), the cleanup task runs very slowly due to
the non-indexed search.
Also adds an index for ONELEVEL lookups, to speed up situations
where we would need to request all entries under a particular node
in the LDB. |
84bb9ec1bba8e60d1d87febd48749edd18e16787 |
|
20-Dec-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add sysdb_has_enumerated and sysdb_set_enumerated helper functions
Includes a unit test |
f8a60e728780a8230ed4fa9c5350fa94534f0543 |
|
15-Nov-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Fix const cast issue with sysdb_attrs_users_from_str_list |
f2838dcdc3587b685655781a576aff27a1719412 |
|
15-Nov-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Sanitize sysdb DN helpers |
aef2ac961abfe73c799354f5cfa0331ab44ac765 |
|
15-Nov-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add sysdb utility function for sanitizing DN |
580374daba2ab2c6075a7d0de9512abff133e2e9 |
|
26-Oct-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Always use uint32_t for UID/GID numbers |
8c08a5e11f19cfe39695ee80793b72e2034c5aa4 |
|
15-Oct-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Add sysdb_attrs_get_ulong utility function |
517b5d79dd38b20f9e03dd0bd8bdc0f0a6f67198 |
|
13-Oct-2010 |
Sumit Bose <sbose@redhat.com> |
Add sysdb_netgroup_base_dn() |
1a3c4b9f378e3b04161e4f35b2efa5fae3d56a7b |
|
13-Oct-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Netgroups sysdb API |
8375f313b21253f72ad958d954f558a74141cf54 |
|
22-Sep-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Fix sysdb_attrs_to_list |
e36ec25b898ecba4e28b244683c57a4372731042 |
|
22-Sep-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Fix sysdb_group_dn_name |
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 |
0228e28a3f07b5dc909cdc154dc89c4952f09280 |
|
03-Aug-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add sysdb_group_dn_name utility function |
0286d59c82657abe96ccaa3eebea7240ac30ca81 |
|
03-Aug-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add sysdb_attrs_to_list() utility function |
5fad9a3d700ba24783e66c6941f68f84459b4d61 |
|
02-Jun-2010 |
Sumit Bose <sbose@redhat.com> |
Add sysdb_attrs_get_string_array() |
35480afaefafb77b28d35b29039989ab888aafe9 |
|
27-May-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add ldap_access_filter option
This option (applicable to access_provider=ldap) allows the admin
to set an additional LDAP search filter that must match in order
for a user to be granted access to the system.
Common examples for this would be limiting access to users by in a
particular group, for example:
ldap_access_filter = memberOf=cn=access_group,ou=Groups,dc=example,dc=com |
9db5a5140356479a58f2e7212fc5c4ad6135bb7f |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysydb: Finally stop using a common event context
This commit completes the migration to a synchronous sysdb |
e5e32021c23f3726d68ee756e8e3de48b3214063 |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: remove remaining traces of sysdb_handle |
7db27a6090eafc8a4f76d25c464d1341b8dc5b8a |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: remove async transactions
not used anymore |
cc14edade621572cf4457d55d5b989029c5131ee |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: add synchronous transaction functions |
a21698161dcc506e469d7af58099e952062ff256 |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: start conversion from async to sync
allow nesting during transition |
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. |
9fb59763bce293c2490e0b9f8e97bb1f74ba0910 |
|
04-Mar-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add --with-test-dir option to configure
All 'make check' tests will chdir() into this directory before
running the suite. This provides the option of having temporary
files generated in a tmpfs or ramdisk |
1c48b5a62f73234ed26bb20f0ab345ab61cda0ab |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Rename server/ directory to src/
Also update BUILD.txt |