summaryrefslogtreecommitdiff
path: root/server/util/util.h
AgeCommit message (Collapse)AuthorFilesLines
2009-11-20Add initial failover support for ldap and ipaSimo Sorce1-0/+4
The retun values are still not directly used with ldap libraries that still do their own name resolution, but this patch introduces a very basic framework to have a multiple providers in one domain use and share a single failover service if they want to.
2009-11-20Filter by id range before actually storing entries.Simo Sorce1-0/+3
This way we do not need to check for id ranges on every search.
2009-11-09Fix tevent_req error checking.Simo Sorce1-0/+12
When possible using a macro that correctly deals with tstate
2009-11-09Add missing includeJakub Hrozek1-0/+1
2009-11-05Build files.c only for toolsStephen Gallagher1-10/+0
Move files.c into tools directory
2009-10-22User home directories managementJakub Hrozek1-0/+10
Create and populate user directories on useradd, delete them on userdel Fixes: #212
2009-10-22Delete sssd-i18n.h and put it's old contents into util.hMartin Nagy1-3/+9
Also include talloc.h, tevent.h and ldb.h as system headers in util.h.
2009-10-15enable debugging of krb5_childSumit Bose1-0/+2
2009-10-05add utility call check_and_open_readonlySumit Bose1-0/+4
Use this new utility call to ensure that the config file is safe to read from.
2009-09-25Send debug messages to logfileJakub Hrozek1-0/+5
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.
2009-09-23Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher1-16/+0
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.
2009-09-21Use syslog for logging error conditions in SSSDJakub Hrozek1-0/+16
This is just a band-aid until ELAPI is fully functional and ready to use.
2009-09-21Provide python bindings for sysdbJakub Hrozek1-0/+8
Implement a set of python bindings for the sysdb with feature set similar to what is available in the tools. The primary consumers would be applications like system-config-users. Resolves: Ticket #102
2009-09-11Add copyright noticesJakub Hrozek1-0/+20
Fixes: #138
2009-09-08Split database in multiple filesSimo Sorce1-0/+3
The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
2009-08-28add configure check for errno_tSumit Bose1-0/+5
2009-08-11Make child processes exit when parent diesJakub Hrozek1-0/+1
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.
2009-08-05Fix broken ifndefsSimo Sorce1-9/+0
ifndef doesn't work for those functions that aren't already macro definitions in tevent.h like tevent_req_data. However if tevent_req_data is defined in tevent.h, all other functions are available as well. So just check for tevent_req_data and define all of them if it is not available. This should fix compiling on distros with the latsest tevent.
2009-08-05Move parsing of names and domains into util/Jakub Hrozek1-0/+16
2009-08-05Consolidate tevent helpersJakub Hrozek1-0/+25
2009-07-20Add option to add timestamps to debug outputSimo Sorce1-3/+12
use '--debug-timestamps' at the command line or set 'debug-timestamps = TRUE' in the configuration file.
2009-07-10add a short explanation about the used debug levelsSumit Bose1-0/+14
2009-07-02PRINT and ERROR macrosJakub Hrozek1-0/+3
2009-06-10Turn sssd_mem_takeover into sssd_mem_attachSimo Sorce1-8/+17
The old function was not used anywhere, and this function uses better semantics, including not using void ** which gives strict aliasing problems. Also add a generic password destroy function
2009-06-02add utility function talloc_zfreeSimo Sorce1-0/+4
2009-05-28Suppress "rootdse" error messages.Stephen Gallagher1-0/+5
We will trap all LDB debug messages and pipe them into our internal DEBUG() function. LDB FATAL messages will still be printed by default, WARNING and TRACE functions will be at debug level 3 and 9, respectively.
2009-03-20Enhance server_setupSimo Sorce1-0/+1
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.
2009-02-26Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce1-2/+8
dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
2009-02-24Adding support for CheckPermissions to InfoPipe.Stephen Gallagher1-0/+3
CheckPermissions will currently return unrestricted access to the root user, and no access to any other user. Once we decide on an ACL mechanism, this will be easy to change. I have also added very basic tests for the Introspect and CheckPermissions methods.
2008-11-25Make a binary out of each major sssd component instead ofSimo Sorce1-3/+20
using the same binary to fork off all services.
2008-11-24Replacing hard-coded paths with configure script substitutions.Stephen Gallagher1-2/+0
Changing the default SBUS locations to be configure script parameters
2008-11-20Start conversion from a fork() and live to a fork()/exec() model.Simo Sorce1-2/+4
To start the dameon now you need to pass the option -s monitor Still have some problems communicating with children.
2008-11-04Rename function, do not use other libraries namespaceSimo Sorce1-2/+4
2008-11-03Initial memory cleanup workStephen Gallagher1-0/+4
2008-10-09Use classic errno instead of inventing our own, it's broad enough fro atm.Simo Sorce1-5/+1
2008-10-07We need replace.h here or __location__ cannot be foundSimo Sorce1-0/+1
2008-10-07Add primitive debugging capabilities.Simo Sorce1-1/+10
So far debug goes to stderr so sssd need to be run int interactive mode (-i option)
2008-10-04Add initial nss responder skeletonSimo Sorce1-0/+1
2008-10-04Initital server code.Simo Sorce1-0/+38
Includes test monitor task.