summaryrefslogtreecommitdiff
path: root/src/providers/data_provider_be.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-03SSH: Add dp_get_host_send to common responder codeJakub Hrozek1-21/+11
Instead of using account_info request, creates a new ssh specific request. This improves code readability and will make the code more flexible in the future. https://fedorahosted.org/sssd/ticket/1176
2012-05-03Rename split_service_name_filterJakub Hrozek1-16/+16
The function was used outside services code which was confusing due to its name. This patch renames it to sound more netrual.
2012-05-02DP: return correct error message when subdomains back end target is not ↵Jakub Hrozek1-1/+1
configured The done handler uses the value of status, not ret.
2012-04-24Carry sysdb context and domain info in be_req structureJan Zeleny1-0/+2
2012-04-24Basic support for subdomains in auth providerJan Zeleny1-3/+5
2012-04-24Add domain name to get_account_info requestSumit Bose1-0/+9
2012-04-24data provider: added subdomainsSumit Bose1-0/+160
2012-04-16autofs: load the correct optionJakub Hrozek1-1/+1
2012-04-05Catch cases where D-Bus connection is NULLJakub Hrozek1-0/+20
https://fedorahosted.org/sssd/ticket/1270
2012-03-05DP: Reorganize memory hierarchy of requestsStephen Gallagher1-24/+108
This function alters the memory hierarchy of the be_req to ensure memory safety during shutdown. It creates a spy on the be_cli object so that it will free the be_req if the client is freed. It is generally allocated atop the private data context for the appropriate back-end against which it is being filed. https://fedorahosted.org/sssd/ticket/1226
2012-02-29Keep sysdb context in domain info structSumit Bose1-8/+2
2012-02-27PAM: Don't send PAM_SYSTEM_INFO message if module unsetStephen Gallagher1-7/+3
We now have a session module that is only available for the IPA provider. We should not be logging noisily that other providers do not have the session provider configured. https://fedorahosted.org/sssd/ticket/1211
2012-02-26SSH: Save SSH host name aliasesJan Cholasta1-1/+3
2012-02-13Fix bad failure handling in be_sudo_handler()Stephen Gallagher1-13/+13
If the dbus_message_get_args() failed, we would have been dereferencing a NULL be_req. Coverity #12490
2012-02-13Remove dead codeStephen Gallagher1-9/+0
Coverity #12529
2012-02-07AUTOFS: IPA providerJakub Hrozek1-1/+1
2012-02-07SSH: ResponderJan Cholasta1-0/+5
2012-02-07DP: Add host info handlerJan Cholasta1-0/+193
2012-02-06Add session target in data providerJan Zeleny1-1/+19
2012-02-05AUTOFS: Data Provider requestJakub Hrozek1-30/+308
2012-01-27SUDO Integration - prepare data provider for new responder commandsPavel Březina1-58/+85
https://fedorahosted.org/sssd/ticket/1143
2012-01-27Use the new SUDO request in DP and sudo responderJakub Hrozek1-19/+48
Also remove the old request implementation https://fedorahosted.org/sssd/ticket/1115
2012-01-27DP: Handle parsing extra results in be_get_account_infoStephen Gallagher1-33/+69
2012-01-17SUDO Integration review issuesPavel Březina1-4/+4
2011-12-19Move child_common routines to utilStephen Gallagher1-1/+1
2011-12-19Add common SIGCHLD handling for providers.Pavel Zuna1-0/+9
2011-12-16SUDO integration - data provider backend handlerPavel Březina1-0/+158
2011-10-13Append PID to sbus server socket name, let clients use a symlinkJakub Hrozek1-1/+1
https://fedorahosted.org/sssd/ticket/1034
2011-08-25New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0Pavel Březina1-1/+4
Removed: SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED) Added new macro: CONVERT_AND_SET_DEBUG_LEVEL(new_value) Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0 so DEBUG macro could be reduced by one condition. Anyway, it has a minor effect, every time you want to load debug_level from command line parameters, you have to use following pattern: /* Set debug level to invalid value so we can deside if -d 0 was used. */ debug_level = SSSDBG_INVALID; pc = poptGetContext(argv[0], argc, argv, long_options, 0); while((opt = poptGetNextOpt(pc)) != -1) { ... } CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
2011-08-25New DEBUG facility - conversionPavel Březina1-0/+2
https://fedorahosted.org/sssd/ticket/925 Conversion of the old debug_level format to the new one. (only where it was necessary) Removed: SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
2011-05-06Allow changing the log level without restartStephen Gallagher1-5/+20
We will now re-read the confdb debug_level value when processing the monitor_common_logrotate() function, which occurs when the monitor receives a SIGHUP.
2011-05-06Create common sss_monitor_init()Stephen Gallagher1-35/+3
This was implemented almost identically for both the responders and the providers. It is easier to maintain as a single routine. This patch also adds the ability to provide a private context to attach to the sbus_connection for later use.
2011-03-08Remove unused be_check_online() SBUS callJan Zeleny1-49/+0
2010-12-02Add a special filter type to handle enumerationsSumit Bose1-0/+3
2010-12-01Run checks before resetting offline stateSumit Bose1-4/+115
Before setting the backend to online during a reset offline request the check_online method if the ID provider is called. If the check_online method returns that the ID provider is still not reachable the backend stays offline. Otherwise the backend is switched to online and the related callbacks are run. Additionally the check online test is called during the res_init request because a change in /etc/resolve.conf might also make a server reachable which was assumed offline before.
2010-11-24Print correct error messages for dp_err_to_string()Stephen Gallagher1-6/+6
All errnum values passed into this function throughout the code are PAM error codes, but we were passing them through strerror() to print them, which is only meaningful for ERRNO error codes. This patch changes dp_err_to_string() to use pam_strerror() and renames it to dp_pam_err_to_string() for clarity. https://fedorahosted.org/sssd/ticket/636
2010-08-03be_pam_handler(): Fix potential NULL dereferenceStephen Gallagher1-1/+2
2010-07-09Use netlink to detect going onlineJakub Hrozek1-0/+20
Integrates libnl to detect adding routes. When a route is added, the offline status of all back ends is reset. This patch adds no heuristics to detect whether back end went offline. Fixes: #456
2010-05-27Add offline callbacksSumit Bose1-0/+1
2010-05-27Refactor data provider callbacksSumit Bose1-137/+0
2010-05-27Copy pam data from DBus messageSumit Bose1-11/+6
Instead of just using references to the pam data inside of the DBus message the data is copied. New the DBus message can be freed at any time and the pam data is part of the memory hierarchy. Additionally it is possible to overwrite the authentication tokens in the DBus message, because it is not used elsewhere.
2010-05-27Fix error reporting for be_pam_handlerStephen Gallagher1-1/+1
2010-05-20Revert "Copy pam data from DBus message"Stephen Gallagher1-6/+11
This reverts commit 2faf73eef14d66aeb345ffa38d0f53670fa8a9a1.
2010-05-20Copy pam data from DBus messageSumit Bose1-11/+6
Instead of just using references to the pam data inside of the DBus message the data is copied. New the DBus message can be freed at any time and the pam data is part of the memory hierarchy. Additionally it is possible to overwrite the authentication tokens in the DBus message, because it is not used elsewhere.
2010-05-07Add callback when the ID provider switches from offline to onlineStephen Gallagher1-0/+138
Allow backends to set a callback in the be_ctx that should be invoked when the ID provider goes online. This can be used to perform regular maintenance tasks that are valid only when going online.
2010-05-03Better handle sdap_handle memory from callers.Simo Sorce1-1/+1
Always just mark the sdap_handle as not connected and let later _send() functions to take care of freeing the handle before reconnecting. Introduce restart functions to avoid calling _send() functions in _done() functions error paths as this would have the same effect as directly freeing the sdap_handle and cause access to freed memory in sdap_handle_release() By freeing sdap_handle only in the connection _recv() function we guarantee it can never be done within sdap_handle_release() but only in a following event.
2010-04-16Make ID provider init functions clearerStephen Gallagher1-1/+1
Using sssm_*_init() as the name of the initialization function for identity providers was a holdover from earlier development when we thought we would only have a single "provider" entry in the config file. As we have now separated out the initialization functions for auth, chpass and access, we should rename sssm_*_init() to sssm_*_id_init() for a cleaner interface.
2010-04-12sysydb: Finally stop using a common event contextSimo Sorce1-1/+1
This commit completes the migration to a synchronous sysdb
2010-03-08Reopen logs when SIGHUP is caughtJakub Hrozek1-0/+1
Upon receiving SIGHUP, the monitor signals all services to reopen their debug logs. It is also possible to signal individual services to reopen their particular files. Fixes: #332
2010-02-22Remove unnecessary "domain" parameter from DP registrationStephen Gallagher1-2/+0
This was a holdover from when the DP and the providers were unique processes. The NSS and PAM registrations do not need to send the domain, as it is not ambiguous which one they are talking to.