| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
Instead of recursively updating all users of each group the user
being queried belongs to, just add or remove membership for the
requested user.
Fixes https://fedorahosted.org/sssd/ticket/478
|
|
|
|
|
|
|
|
| |
This function will take a user, a list of groups that this user
should be added to and a list of groups the user should be removed
from and will recursively call sysdb_[add|remove]_group_member
Includes a unit test
|
| |
|
| |
|
|
|
|
| |
Includes a unit test
|
| |
|
|
|
|
|
|
|
| |
Currently the PAM and NSS client just return an error if there are
problems on an open socket. This will lead to problems in long running
programs like gdm if sssd is restarted, e.g. during an update. With this
patch the socket is closed and reopened.
|
|
|
|
|
| |
Also adds support for detecting LDAPS errors by adding a check for
SDAP_DIAGNOSTIC_MESSAGE after ldap_search_ext()
|
|
|
|
|
| |
We will now emit a level 0 debug message on keytab errors, and
also write to the syslog (LOG_DAEMON)
|
| |
|
|
|
|
|
| |
Right now, this log function writes to the syslog. In the future,
it could be modified to work with ELAPI or another logging API.
|
|
|
|
|
|
|
|
|
|
|
| |
In violation of the standard, some LDAP servers control access to
the RootDSE, thus preventing us from being able to read it before
performing a bind.
This patch will allow us to continue on if the RootDSE was
inaccessible. All of the places that we use the return value of
the RootDSE after this are already checked for NULL and use sane
defaults if the RootDSE is unavailable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Operational attributes are not returned in searched requests unless
explicitly requested according to RFC 4512 section 5.1. Therefore to
get several standard attributes of root DSE we have to request for
them. The requested attrs are:
- altServer
- namingContexts
- supportedControl
- supportedExtension
- supportedFeatures
- supportedLDAPVersion
- supportedSASLMechanisms
Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
If sdap_mark_offline() is called before a live connection is
established, sdap_fd_events could be NULL, causing a segfault when
remove_ldap_connection_callbacks() attempts to free the
sdap_fd_events->conncb
https://fedorahosted.org/sssd/ticket/545
|
|
|
|
|
| |
ldap_get_option() can only fail if the option we're removing has
already been removed. It is sufficient to log this and continue.
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/515
|
| |
|
|
|
|
|
| |
Creates a new function - sss_ncache_prepopulate() - that can be
shared with other responders, such as PAM.
|
|
|
|
|
| |
Rename functions from nss_ncache_* to sss_ncache_*
Move negative cache to responder/common and rename as negcache.c/h
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/544
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/542
|
| |
|
|
|
|
|
| |
We will now eliminate any unknown options and providers to
guarantee that the domain is safe for use.
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/532
|
|
|
|
| |
Fixes: #535
|
|
|
|
| |
Fixes: #503
|
|
|
|
| |
Fixes: #516
|
|
|
|
| |
Ticket #515
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/539
|
| |
|
|
|
|
| |
Fixes: #541
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/540
|
| |
|
|
|
|
| |
Fixes: #531
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/528
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/525
|
|
|
|
|
|
|
| |
We can't do much about an error here, but we should be reporting
it.
https://fedorahosted.org/sssd/ticket/534
|
|
|
|
|
|
|
|
|
| |
We need to make sure that if we didn't create the timeout, that we
cancel the request so there's no chance of ending up with two
enumerations/cleanups running simultaneously. We'll attempt to
reschedule later, if possible.
https://fedorahosted.org/sssd/ticket/524
|
|
|
|
|
|
|
|
|
| |
In several places, we were creating a new timer and assigning it
to the tev variable, but then we were checking for NULL from the
te variable (which, incidentally, is guaranteed never to be NULL
in this situation)
https://fedorahosted.org/sssd/ticket/523
|
|
|
|
|
|
|
| |
Failing to return after the tevent_req_post() here can result in a
null-pointer dereference (along with other hard-to-track bugs)
https://fedorahosted.org/sssd/ticket/507
|
|
|
|
| |
https://fedorahosted.org/sssd/ticket/506
|
| |
|
|
|
|
|
|
|
| |
We need to guarantee at all times that reads and writes complete
successfully. This means that they must be checked for returning
EINTR and EAGAIN, and all writes must be wrapped in a loop to
ensure that they do not truncate their output.
|
| |
|
| |
|
| |
|
| |
|