summaryrefslogtreecommitdiffstats
path: root/server/monitor.c
Commit message (Collapse)AuthorAgeFilesLines
* fix typoSimo Sorce2009-01-061-1/+1
|
* Fix dp client to connect to the right dbus pipeSimo Sorce2009-01-051-0/+8
|
* libevents renamed upstream to libteventSimo Sorce2008-12-221-1/+1
| | | | events.h -> tevent.h
* Modified sbus_server_new() to take a talloc memory context to useStephen Gallagher2008-12-151-1/+1
| | | | as a parent for the new server context object.
* Disconnected client SBUS connections would delete the master set of ↵Stephen Gallagher2008-12-151-8/+10
| | | | | | | | sbus_method_ctx entries, meaning that the next connection to attempt to disconnect would receive a segmentation fault also trying to delete them. They are now talloc_reference()-ed to their connection context and talloc_unlink()-ed upon deletion. I have also modified the sbus_new_server() call to take a reference to an sbus_srv_ctx object as a return argument, so that the calling function can keep track of the SBUS server context if it so chooses.
* Convert leading tabs to 4 spacesSimo Sorce2008-12-101-20/+20
|
* Fix dbus related memory leaksSimo Sorce2008-12-091-5/+13
|
* Change data provider into a hub, where backends (ldap, nis, ipa providers)Simo Sorce2008-12-081-0/+54
| | | | and frontends (pam, nss, ... modules) can connect to.
* Make a binary out of each major sssd component instead ofSimo Sorce2008-11-251-1/+64
| | | | using the same binary to fork off all services.
* Replacing hard-coded paths with configure script substitutions.Stephen Gallagher2008-11-241-1/+10
| | | | Changing the default SBUS locations to be configure script parameters
* Make it possible to use an arbitrary command to start servicesSimo Sorce2008-11-201-10/+121
|
* Start conversion from a fork() and live to a fork()/exec() model.Simo Sorce2008-11-201-13/+47
| | | | | To start the dameon now you need to pass the option -s monitor Still have some problems communicating with children.
* Add some infrastructure code to add data providers.Simo Sorce2008-11-191-9/+10
| | | | | | This currently breacks the dameon because of a problem with destroying the monitor dbus server in the children after fork()
* The default message handler will now pass both the method_ctx and theStephen Gallagher2008-11-171-1/+1
| | | | | | | sbus_conn_ctx to all message handling functions. This will allow connection-specific data to be passed in by taking advantage of the sbus_conn_set_private_data() function on the sbus_conn_ctx struct. Presently this private data is global to all methods of the connection context.
* Store all domains served by the SSSD to a binary-tree map for fast NSS lookup.Stephen Gallagher2008-11-071-4/+4
| | | | | | Changed the "section" feature of confdb.c to use '/' as a delimiter instead of '.', because this conflicted with the ability to use dots in domain names.
* Set floor to ping time or the monitor will get crazy trying to pingSimo Sorce2008-11-051-1/+7
| | | | children thousands of times per second.
* Add the ping funtion to the nss service Make the monitor task ping ↵Simo Sorce2008-11-041-90/+410
| | | | connecting services Make it possible to configure timeouts and service ping times.
* Add support for dbus comunication in the nss serviceSimo Sorce2008-11-031-4/+9
| | | | | Add utility function in confdb Make all component fetch the dbus socket from the confdb
* Use a common interface file for all users of the internalSimo Sorce2008-11-031-5/+1
| | | | sbus service.
* Renaming sssd/server/dbus to sssd/server/sbus. Making necessary changes to ↵Stephen Gallagher2008-11-031-1/+1
| | | | header includes and makefiles.
* Refactoring dbus code. Also corrected one talloc allocation mistake for ↵Stephen Gallagher2008-11-031-11/+11
| | | | sbus_dispatch.
* Moved method handling into sssd_dbus_connection.c. Added support for ↵Stephen Gallagher2008-11-031-6/+103
| | | | handling multiple D-BUS paths in a connection. Added support for per-connection method setup. Added support for per-connection specialized destructors. Added mandatory getIdentity call for all services connecting to the monitor. If they do not present an identity (expose the getIdentity method and respond with name and version), they are dropped immediately. Other minor fixes.
* Cleaning up improper whitespaceStephen Gallagher2008-11-031-1/+1
|
* Fixed segfault issue when remote connection is lost.Stephen Gallagher2008-11-031-8/+8
|
* Initial memory cleanup workStephen Gallagher2008-11-031-1/+4
|
* D-BUS integration style changes.Simo Sorce2008-10-271-96/+71
| | | | | | | | | | | | Rework interfaces a bit to simplify and uniform function names so that they use a well defined namespace (sssd_*). Simplify headers file, split them into a private and a public one only. Make static all file private functions. Rename sssd_dbus_client.c to sssd_dbus_connection.c to reflect it's function, as it is is used by both a server and a client. Introduce a function table to know where to dipatch messages. Fix coding style issues, and start pointing out where clean-up fucntions are missing.
* Integrate D-BUS support for use as IPC between parts.Stephen Gallagher2008-10-241-6/+102
| | | | Integrates DBUS with the event system so that it is asynchronous.
* Make return the pid when new process are started.Simo Sorce2008-10-211-106/+100
| | | | | | | | Monitor each service and restart it conditionally if it fails. These monitoring is extremely simple at this moment and just uses waitpid() to check if the client is alive, there is no active probing, that will require dbus. Make nsssrv.c read the sss pipe config option for the config db.
* Initital server code.Simo Sorce2008-10-041-0/+168
Includes test monitor task.