summaryrefslogtreecommitdiffstats
path: root/server/util/server.c
Commit message (Collapse)AuthorAgeFilesLines
* Add allocation error checkStephen Gallagher2009-12-081-7/+10
|
* Delete sssd-i18n.h and put it's old contents into util.hMartin Nagy2009-10-221-1/+0
| | | | Also include talloc.h, tevent.h and ldb.h as system headers in util.h.
* Send debug messages to logfileJakub Hrozek2009-09-251-1/+25
| | | | | | | | | | | | | 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-2/+4
| | | | | This converts a great many configuration options to the new standard format.
* Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher2009-09-231-17/+17
| | | | | | | | 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-17/+17
| | | | | This is just a band-aid until ELAPI is fully functional and ready to use.
* Remove unused event context argument from confdb_initStephen Gallagher2009-09-101-2/+2
| | | | | | Because the confdb always operates synchronously, it maintains its own private event context internally. The event context argument passed to it is never used, so we'll remove it to avoid confusion.
* Make child processes exit when parent diesJakub Hrozek2009-08-111-0/+44
| | | | | | | | 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.
* Add option to add timestamps to debug outputSimo Sorce2009-07-201-0/+12
| | | | | use '--debug-timestamps' at the command line or set 'debug-timestamps = TRUE' in the configuration file.
* Create gettext framework for SSSD daemonStephen Gallagher2009-06-171-0/+6
|
* Chdir to / when daemonizingJakub Hrozek2009-05-081-0/+11
|
* Use tevent for shutdown signals, remove old pidfile, make sssd single-instance.Jakub Hrozek2009-05-081-1/+9
| | | | | | | | Use tevent signal handling facilities for handlong SIGTERM and SIGINT in the monitor. Remove pidfile on SIGTERM and SIGINT. Make sssd single-instance by checking if we suceeded in signaling the process in the pidfile.
* Enhance server_setupSimo Sorce2009-03-201-0/+10
| | | | | | | 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.
* Better error reporting for pidfile()Simo Sorce2009-03-131-7/+11
| | | | | This should help understanding what's going on if the server fails to create a pid file.
* Fix calling setsid and resolve the sssd signal bugSimo Sorce2009-03-111-11/+1
| | | | | | | | | For some reason we were not testing for HAVE_SETSID in configure therefore the setsid() function was never called. This failed to set the process group after the first fork. Remove ifdef because we depend on setsid() anyway, so if it is not available on some platform it is better to fail rather then silently succeed but not have the right process group set up.
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-261-12/+9
| | | | | | dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
* Always pass teh database path explicitly, so that test cases can useSimo Sorce2009-02-131-1/+9
| | | | | throw away databases Check version and init main db if empty
* Fix copy&paste errorSimo Sorce2009-02-121-1/+1
|
* The code now successfully sends a getpwnam request to a remote LDAP server,Simo Sorce2009-01-081-0/+2
| | | | | | 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.
* libevents renamed upstream to libteventSimo Sorce2008-12-221-2/+2
| | | | events.h -> tevent.h
* Convert leading tabs to 4 spacesSimo Sorce2008-12-101-36/+36
|
* Change data provider into a hub, where backends (ldap, nis, ipa providers)Simo Sorce2008-12-081-1/+4
| | | | and frontends (pam, nss, ... modules) can connect to.
* Make a binary out of each major sssd component instead ofSimo Sorce2008-11-251-112/+28
| | | | using the same binary to fork off all services.
* Move all server helpers in util/server.cSimo Sorce2008-11-251-0/+400