summaryrefslogtreecommitdiffstats
path: root/server/providers/data_provider_be.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix potential memory leaks in the data providerMartin Nagy2009-10-221-2/+4
|
* more implicit provider target settingsSumit Bose2009-10-151-13/+48
| | | | | | | | | If auth_provider or access_provider is ont set explicitly id_provider is used if it can handle auth or access control requests respectively. If not auth defaults to 'none' and the access_provider is set to 'permit'. The option 'deny' is added for the access_provider to explicitly deny access.
* set chpass_provider implicit if not set explicitSumit Bose2009-10-151-20/+59
| | | | | | - if chpass_provider is not given in the configuration file but an auth_provider and the auth_provider can also handle change password requests it is used as chpass_provider.
* Return the dp error from the providersSimo Sorce2009-10-151-8/+52
|
* send a message if a backend target is not configuredSumit Bose2009-10-141-12/+30
| | | | | | If a backend target is not configured the return code is changed from PAM_SYSTEM_ERR to PAM_MODULE_UNKNOWN and an error message is sent back to the client.
* Remove DP processSimo Sorce2009-10-091-178/+206
| | | | | Turn the backend process into data provider servers Make Frontends (pam, nss) directly attach to the backends
* Remove unused btreemap codeStephen Gallagher2009-10-061-1/+0
| | | | | We have converted to using dhash in place of btreemap everywhere in the code.
* Send debug messages to logfileJakub Hrozek2009-09-251-0/+4
| | | | | | | | | | | | | Introduces a new option --debug-to-files which makes SSSD output its debug information to a file instead of stderr, which is still the default. Also introduces a new confdb option debug_to_files which does the same, but can be specified per-service in the config file. The logfiles are stored in /var/log/sssd by default. Changes the initscript to log to files by default.
* Upgrade confdb to version 2Stephen Gallagher2009-09-251-12/+10
| | | | | This converts a great many configuration options to the new standard format.
* Remove provider=filesJakub Hrozek2009-09-231-56/+0
| | | | | | | Remove this provider type, as well as any references in the docs and examples to the "LEGACYLOCAL" migration domain. Fixes: #165
* Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher2009-09-231-41/+35
| | | | | | | | This reverts commit 8c50bd085c0efe5fde354deee2c8118887aae29d. Amended: commit 1016af2b1b97ad4290ccce8fa462cc7e3c191b2e also made use of the SYSLOG_ERROR() macro, so those portions of that code also needed to be reverted.
* Use syslog for logging error conditions in SSSDJakub Hrozek2009-09-211-35/+41
| | | | | This is just a band-aid until ELAPI is fully functional and ready to use.
* Make the offline status backend-globalSimo Sorce2009-09-141-86/+31
| | | | | Add helpers functions to query/set the offline status per backend. Now all providers share the same offline status.
* Split database in multiple filesSimo Sorce2009-09-081-2/+2
| | | | | The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
* remove the concept of a backend nameSumit Bose2009-09-021-17/+31
| | | | | | | | | | | The data provider backends stored a name value besides the domain name to identify themselves to the data provider. This was the name of the id provider. Currently the backends can have different providers for id, authentication etc. So the name may be missleading. Also when there are more domains with the same id provider the name is not enough to identify the backend but the domain name is. As a consequence the backend name is removed completely and only the domain name is used for identification.
* Fix reconnection codeSimo Sorce2009-08-171-2/+0
| | | | | | | Remove redundant reconnection code that was interfeering with the sbus reconnection code. Consolidate include files for sbus relates operations. Make pamsrv code similar to nsssrv code.
* Make "files" a reserved word for legacy local domainJakub Hrozek2009-08-131-0/+43
| | | | | | | | This patch introduces provider=files as a valid provider. Upon loading the backend, its properties in confdb are overwritten to those that represent legacy local domain. Also document this in sssd.conf(5) and example config
* Change the why DP clients identifySimo Sorce2009-08-111-43/+22
| | | | Mirrors what we have done with the monitor.
* Change services identification mechanismSimo Sorce2009-08-111-81/+11
| | | | | | | Let services identify themselves voiluntarily as the first operation instead of polling from the monitor. Also consolidate some common functions and make them available as monitor helpers.
* Make child processes exit when parent diesJakub Hrozek2009-08-111-0/+6
| | | | | | | | The child processes call prctl() and when their parent process is killed, they are sent SIGTERM using prctl. This is currently Linux-specific, for non-Linuxes, a similar effect is achieved by catching a set of common termination signals and sending SIGTERM to the process group.
* Make socket paths a compile-time optionStephen Gallagher2009-08-111-1/+0
| | | | | | Previously, we had hardcoded the paths for the NSS, PAM and private PAM sockets to /var/lib/sss/pipes. With this patch, we will specify the sockets with --with-pipe-path.
* Simplify interfaces initializationSimo Sorce2009-08-101-37/+22
| | | | | | | Make as much as possible static, and remove use of talloc_reference and allocation/deallocation of memory when not necessary. Fix also responder use of rctx->conn, was mistakenly used for both monitor and dp connections.
* merge server and connection structuresSimo Sorce2009-08-101-10/+4
| | | | | | This reduce code duplication as it allows to use one set of watch and timeout functions, and at the same time also allow not to use a secondary structure just to unify these functions.
* Cosmetic changesSimo Sorce2009-08-101-41/+41
| | | | | Rationalize and rename connection names in preparatoin for merging of server and connection structures.
* Remove redundant memory contextsSimo Sorce2009-08-101-21/+27
| | | | Simplify code by removing stuff that is never used or redundant.
* added LDAP change password backend targetSumit Bose2009-07-211-2/+6
|
* Implement resInit for monitor, NSS, PAM, DP and the backendsStephen Gallagher2009-07-201-0/+19
|
* add infrastructure to handle new backend targetsSumit Bose2009-07-201-110/+168
|
* Make reconnection to the Data Provider a global settingStephen Gallagher2009-04-141-2/+2
| | | | | | | Previously, every DP client was allowed to set its own "retries" option. This option was ambiguous, and useless. All DP clients will now use a global option set in the services config called "reconnection_retries"
* Fix a couple of segfaults and timeout checksSimo Sorce2009-04-131-18/+17
|
* Always pass full domain infoSimo Sorce2009-04-131-6/+11
| | | | | Change sysdb to always passwd sss_domain_info, not just the domain name. This way domain specific options can always be honored at the db level.
* Split modules types in Identity and AuthenticatorSimo Sorce2009-04-071-20/+135
| | | | | | | | | | | | | | The same module may implement both types, but initializatrion will be nonetheless performed separately, once for the identity module and once for the authenticator module. Also change the proxy module to retireve the pam target name from the domain configuration so that it is possibile to create per-domain pam stacks. With this modification it is actually possibile to use normal nss and pam modules to perform a successful authentication (tested only with sudo so far) Update exmples.
* Do not file a sure segfault.Simo Sorce2009-04-011-0/+2
|
* Enhance server_setupSimo Sorce2009-03-201-1/+7
| | | | | | | Now it can load from scratch default configuration that is valid for all daemons. First thing, make it possible for each daemon/provider to set its own debug level in its configuration entry.
* Enable autoreconnection of Data Provider Backends to the Data ProviderStephen Gallagher2009-03-201-3/+94
|
* use pam_data as main data structure for dbus communicationSumit Bose2009-03-191-38/+8
|
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-261-5/+6
| | | | | | dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
* Add PAM responderSumit Bose2009-02-241-1/+137
| | | | | | | Also move responders under server/responder with shared code in server/responder/common Signed-off-by: Simo Sorce <ssorce@redhat.com>
* Proper fix for memory handling problem.Simo Sorce2009-02-241-36/+46
| | | | | | | | | | sbus_message_handler is not responsible anymore for sending back data in any case. Transfer this responsibility to the handler function called. This way both synchronous and asynchronous funstions use the interface the same way and can properly free memory referenced by the reply after the send buffer has been filled in and all copies are done in sbus_conn_send_reply()
* Revert "Fixing serious memory allocation bug in sbus_message_handler."Simo Sorce2009-02-241-30/+41
| | | | | | | | | | | | | | | This reverts commit 13421cbe0af4343f9d110600755ffa756690b282. Conflicts: server/infopipe/infopipe.c server/infopipe/infopipe.h While this solution fixed the contingent memory problem it introduced other problems in handling asynchronous replies. Reverting in preparation for a different way to solve it. Conflicts have been taken care of.
* Fixing serious memory allocation bug in sbus_message_handler.Stephen Gallagher2009-02-231-41/+30
| | | | | | | | | | | | dbus_message_append_args() adds a reference to memory that is not copied to the outgoing message until dbus_connection_send() is called. Since we compile our reply messages in functions and then return the reply, we need a mechanism for deleting allocated memory after invoking dbus_connection_send. I have changed the arguments to sbus_msg_handler_fn so that it takes a talloc ctx containing the sbus_message_handler_ctx and a pointer to a reply object. We can now allocate memory as a child of the reply context and free it after calling dbus_connection_send.
* Make backend requests asyncSimo Sorce2009-02-131-14/+223
|
* Always pass teh database path explicitly, so that test cases can useSimo Sorce2009-02-131-1/+1
| | | | | throw away databases Check version and init main db if empty
* Remove dp_cli_sbus_initSimo Sorce2009-02-121-12/+5
|
* Refactoring the monitor code and SBUS utility functions.Stephen Gallagher2009-01-271-11/+59
|
* Add code to make it easier to reconnect in case the serverSimo Sorce2009-01-141-15/+3
| | | | | is not available immediately or drops the dbus connection. First step is the nss connection to the data provider.
* Regroup database rleated functions under db andSimo Sorce2009-01-121-3/+2
| | | | rename everything with the sysdb suffix.
* Turn ldap_provider.c into proxy.c and make it possible to load just anySimo Sorce2009-01-111-1/+2
| | | | libnss library through config directives on the domain object
* The code now successfully sends a getpwnam request to a remote LDAP server,Simo Sorce2009-01-081-18/+53
| | | | | | and caches the result in LDAP. Still chasing a bug that does not let NSS known that the BE was successful. This makes NSS timeout the client and not return any results yet.
* Add more infrastructure to data provider to dispatch requests (still untested).Simo Sorce2009-01-061-153/+87
| | | | | Add helper functions to connect to the data provider. Add some plumbing to the ldap provider (still untested).