346d6d8bf5fdb446921d754c07c8a7d913a048d5 |
|
29-Jan-2018 |
René Genz <liebundartig@freenet.de> |
Fix minor spelling mistakes
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
0e238c259c066cf997aaa940d33d6bda96c15925 |
|
27-Nov-2017 |
Sumit Bose <sbose@redhat.com> |
sysdb: do not use objectClass for users and groups
The majority of the object in the SSSD cache are users and groups. If
there are many user and groups in the cache the index objects of the
objectclass attributes 'user' and 'group' become large because the
must hold references to all objects of those object classes.
As a result the management of these index objects becomes costly because
they must be parsed and split apart quite often. Additionally they are
mostly useless because user and groups are lookup up by more specific
attributes in general.
Only when enumerating all user or groups this kind of index might be
useful.
There are two way of removing this kind of index from the user and group
objects. Either by removing objectClass from the list of indexes and add
a new attribute to all other type of object we want and index for. Or by
replacing objectClass with a different attribute for the user and group
objects. After some testing I think the latter one is the more reliable
one and implemented it in this patch.
Related to https://pagure.io/SSSD/sssd/issue/3503
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
93b9f0bb4694425a0ce766552ea1d1b775ab3c38 |
|
07-Jul-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: Allow bypassing memberof during upgrade
The next sysdb upgrade will be changing memberUid and memberOf
attributes as well. To avoid chanding the memberof module just because
of an upgrade, add a environment variable that disabled the memberof
plugin altogether when set.
The variable will be set at the beginning of the upgrade and unset
later.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
71fbf3a10cd9c5a31e1789baf44a9f9f9b0926f1 |
|
07-Jul-2016 |
Michal Zidek <mzidek@redhat.com> |
Remove misleading comment
Function entry_has_objectclass is not used just
for users.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
27a0be2bb6f21f66527e0edea4ed2cb4b5cafa53 |
|
13-Apr-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
memberof: Don't allocate on NULL when deleting memberUids
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
c07fb3f111b4dc2780fa4e1408ea04cd36e95a4d |
|
13-Apr-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
memberof: Fix a memory leak when removing ghost users
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
2d84b65383f2d13d6f94ac561ad92907b59062f3 |
|
09-Mar-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
memberof: Don't allocate on a NULL context
https://fedorahosted.org/sssd/ticket/2959
In case no previous delete operation occured, the del_ctx->muops pointer we
allocate the diff structure was would be NULL, effectivelly leaking the
diff array during the memberof processing.
Allocating on del_ctx is safer as that pointer is always allocated and
prevents the leak.
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
42604cc8d11743febf5aa892cb3a7d3c32bfed48 |
|
23-Feb-2016 |
Lukas Slebodnik <lslebodn@redhat.com> |
Fix typos reported by lintian
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
999c87114479f230c840a5c020e107c45b29fd56 |
|
23-Mar-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
memberof: Do not create request with 0 attribute values
[sysdb_set_entry_attr] (0x0080): ldb_modify failed: [Constraint violation](19)
[attribute 'ghost': attribute on 'name=Escalation,cn=groups,cn=LDAP,cn=sysdb'
specified, but with 0 values (illegal)]
[sysdb_error_to_errno] (0x0020): LDB returned unexpected error:
[Constraint violation]
[sysdb_set_entry_attr] (0x0040): Error: 14 (Bad address)
[sdap_store_group_with_gid] (0x0040): Could not store group Escalation
[sdap_save_group] (0x0080): Could not store group with GID: [Bad address]
[sdap_save_group] (0x0080): Failed to save group [Escalation]: [Bad address]
[sdap_save_groups] (0x0040): Failed to store group 1. Ignoring.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
a1bd8bc666df7fa696523ec8ec1dfe3d79780588 |
|
04-Nov-2014 |
Sumit Bose <sbose@redhat.com> |
memberof: check for empty arrays to avoid segfaults
The arrays with members to add or delete may be empty, i.e. have 0
entries. In this case further processing should be skipped to avoid
segfaults later on.
Fixes (hopefully) https://fedorahosted.org/sssd/ticket/2430
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
31a27b63617dcfb719cb246d8e1f062988328e01 |
|
09-Feb-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
memberof: Removed unused parameter from mbof_fill_vals_array.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
f7257ab0bcea6c41fab5a4677787f3075ecdcb64 |
|
04-Nov-2013 |
Pavel Reichl <pavel.reichl@redhat.com> |
Include ext headers with #include <foo.h> - cont
Changing style of including header files from outside of sssd tree - from "header.h" to <header.h> |
47d35b3d6b0e1023c8dcdbc8371d6f3ca762dfe4 |
|
28-Aug-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
MEMBEROF: Remove temporary workaround |
aab77886be61d915805bf16500e06fab6a5a7e4f |
|
17-Jul-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Every time use permissive control in function memberof_mod.
Storing cyclic groups into sysdb can cause adding ghost members,
which has already been stored. Function ldb_modify will fail
with error [Attribute or value exists].
With permisive control, duplicated attributes will be skipped
as if it was never added.
https://fedorahosted.org/sssd/ticket/1846 |
ec26d836b1b2a41ec2692976a539da51f261412b |
|
20-Mar-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Making the ldb check configurable
It is possible to enable/disable checking in LDB memberof plugin
whether it was built against the same version of LDB that is present
on the system. This feature is turned off by default
and enabled in Fedora/RHEL spec file.
https://fedorahosted.org/sssd/ticket/1813 |
aed6196263ebddb6f8ffb12eace11539f5941662 |
|
19-Dec-2012 |
Simo Sorce <simo@redhat.com> |
memberof: Prevent unneded failure case
When deleting a user we would fail the operation completely if the member
attribute was not found on one of the groups it was allegedly member of.
Failing in this case is unnecessary, and can cause issues.
Found trying to upgrade db versione (and failing) on one of my RHEL machines.
Also removed a tray \ in the companion function that removes ghost members,
that function needs no changes as it was already ignoring this kind of
failure. |
b1c0ad085fbfd9d2e29de15b131d2ff642b15708 |
|
17-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: silence compilation warnings
src/ldb_modules/memberof.c: In function ‘mbof_get_ghost_from_parent_cb’:
src/ldb_modules/memberof.c:3085: warning: declaration of ‘dup’ shadows a global declaration
/usr/include/unistd.h:528: warning: shadowed declaration is here
src/ldb_modules/memberof.c: In function ‘mbof_inherited_mod’:
src/ldb_modules/memberof.c:3253: warning: declaration of ‘dup’ shadows a global declaration
/usr/include/unistd.h:528: warning: shadowed declaration is here
src/ldb_modules/memberof.c: In function ‘mbof_fill_vals_array’:
src/ldb_modules/memberof.c:3786: warning: declaration of ‘index’ shadows a global declaration
/usr/include/string.h:489: warning: shadowed declaration is here |
cecec6c15d51544a7365459d14ebf87200eaed54 |
|
10-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: Fix copy-n-paste error
https://fedorahosted.org/sssd/ticket/1703 |
a7b0fa042d58c31140eee6927585c70c18f61584 |
|
05-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: Keep inherited ghost users around on modify operation
https://fedorahosted.org/sssd/ticket/1652
It is possible to simply reset the list of ghost users to a different one
during a modify operation. It is also actually how we update entries that
are expired in the SSSD cache.
In this case, we must be careful and retain the ghost users that are not
native to the group we are processing but are rather inherited from child
groups. The intention of the replace operation after all is to set the
list of direct members of that group, not direct and indirect. |
521bc8907ac558320042f229691274d5aa7e55f0 |
|
05-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: Implement the modify operation for ghost users
Similar to the add and delete operation, we also need to propagate the
changes of the ghost user attribute to the parent groups so that if a
nested group updates memberships, its parents also get the membership
updated. |
562021e560a3be3f996551b297cada3cf8ce6cab |
|
05-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: Split the add ghost operation into a separate function
This new function will be reused by the modify operation later |
08500fd7b7d64c26289a62772d433ea5bf578482 |
|
05-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: Split the del ghost attribute op into a reusable function
This new function is going to be reused by the modify operation |
a8fb39ac2e029d32f6937f8bb683284dcb648a9d |
|
05-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: split processing the member modify into a separate function
This will allow to process ghost users in a similar fashion |
fe9516c6cc4e41b00bc7b88431fc42250d98041f |
|
05-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: Implement delete operation for ghost users
https://fedorahosted.org/sssd/ticket/1668
The memberof plugin did only expand the ghost users attribute to
parents when adding a nested group, but didn't implement the reverse
operation.
This bug resulted in users being reported as group members even
after the direct parent went away as the expanded ghost attributes were
never removed from the parent entry.
When a ghost entry is removed from a group, all its parent groups are
expired from the cache by setting the expire timestamp to 1. Doing so
would force the SSSD to re-read the group next time it is requested in
order to make sure its members are really up-to-date. |
701012f04b239793e56b8b0540531b61a6873277 |
|
28-Nov-2012 |
Simo Sorce <simo@redhat.com> |
Avoid duplicating macros
This macro is already available in util/util.h which is expicitly included
in this file. |
6826edf9cbda1b26300340e9e83f7bb491562d00 |
|
26-Nov-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
MEMBEROF: Do not add the ghost attribute to self
When a nested group with ghost users is added, its ghost attribute should
propagate within the nested group structure much like the memberuid
attribute. Unlike the memberuid attribute, the ghost attribute is only
semi-managed by the memberof plugin and added manually to the original
entry.
This bug caused LDB errors saying that attribute or value already exists
when a group with a ghost user was added to the hierarchy as groups were
updated with an attribute they already had. |
a475628466a532213669864de4d5ecead563464d |
|
31-May-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Ghost members - modifications in memberof plugin |
89bff384bccda7e211649dffc40f24a7bdd552df |
|
14-Apr-2011 |
Simo Sorce <ssorce@redhat.com> |
memberof: free delete operation apyload once done
Large memberof delete operations can cause quite a number of searches
and the results are attached to a delop operation structure.
Make sure we free this payload once the operation is done and these
results are not used anymore so that we get a smaller total memory footprint. |
cb57eaf0f8a3fa44776e9b9ea5165304e719d17d |
|
14-Apr-2011 |
Simo Sorce <ssorce@redhat.com> |
memberof: fix calculation of replaced members
We were skipping the check on the next value in the added list when a match
was found for the currentr value being checked. |
23e8d84320ae8b76d244764c02e44036e96cd4df |
|
11-Feb-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Fix module registration with newer LDB libraries. |
01bc248f42f1a056091aa3dd99ba9615ba61df6f |
|
11-Feb-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Clear up -Wunused-but-set-variable warnings |
adc4351a04cef89ced2dbb240180e5d00fd8dd3c |
|
15-Nov-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Sanitize search filters in memberOf plugin |
039d997b19cffa2f5428bb3d85669ebc5888307a |
|
08-Sep-2010 |
Jan Zeleny <jzeleny@redhat.com> |
Dead assignments cleanup in memberof module
Some assignments deleted, two return value inspections were
added.
Ticket: #589 |
3ea37e96974387d57593dfb1010ee6974c7d9e1e |
|
11-Mar-2010 |
Simo Sorce <ssorce@redhat.com> |
Fix memberof calculation when deleting groups
With complex hierarchies it could happen that the group just deleted was
re-added by mistake to the list of groups a user is member of, causing the user
to have a stray memberof value in its entry. |
1c48b5a62f73234ed26bb20f0ab345ab61cda0ab |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Rename server/ directory to src/
Also update BUILD.txt |