summaryrefslogtreecommitdiffstats
path: root/server/util/util.h
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate code for splitting strings by separatorJakub Hrozek2009-12-101-3/+2
| | | | | | | | There were two functions for parsing strings by a separator. This patch consolidates on the one previously used in confdb. This also allows stripping the tokens of whitespace. Fixes: #319
* Allow nesting to fix #310Simo Sorce2009-12-071-0/+3
|
* Make debug log timestamps human-readableStephen Gallagher2009-12-031-2/+6
|
* Add initial failover support for ldap and ipaSimo Sorce2009-11-201-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.
* Filter by id range before actually storing entries.Simo Sorce2009-11-201-0/+3
| | | | This way we do not need to check for id ranges on every search.
* Fix tevent_req error checking.Simo Sorce2009-11-091-0/+12
| | | | When possible using a macro that correctly deals with tstate
* Add missing includeJakub Hrozek2009-11-091-0/+1
|
* Build files.c only for toolsStephen Gallagher2009-11-051-10/+0
| | | | Move files.c into tools directory
* User home directories managementJakub Hrozek2009-10-221-0/+10
| | | | | | Create and populate user directories on useradd, delete them on userdel Fixes: #212
* Delete sssd-i18n.h and put it's old contents into util.hMartin Nagy2009-10-221-3/+9
| | | | Also include talloc.h, tevent.h and ldb.h as system headers in util.h.
* enable debugging of krb5_childSumit Bose2009-10-151-0/+2
|
* add utility call check_and_open_readonlySumit Bose2009-10-051-0/+4
| | | | | Use this new utility call to ensure that the config file is safe to read from.
* Send debug messages to logfileJakub Hrozek2009-09-251-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.
* Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher2009-09-231-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.
* Use syslog for logging error conditions in SSSDJakub Hrozek2009-09-211-0/+16
| | | | | This is just a band-aid until ELAPI is fully functional and ready to use.
* Provide python bindings for sysdbJakub Hrozek2009-09-211-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
* Add copyright noticesJakub Hrozek2009-09-111-0/+20
| | | | Fixes: #138
* Split database in multiple filesSimo Sorce2009-09-081-0/+3
| | | | | The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
* add configure check for errno_tSumit Bose2009-08-281-0/+5
|
* Make child processes exit when parent diesJakub Hrozek2009-08-111-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.
* Fix broken ifndefsSimo Sorce2009-08-051-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.
* Move parsing of names and domains into util/Jakub Hrozek2009-08-051-0/+16
|
* Consolidate tevent helpersJakub Hrozek2009-08-051-0/+25
|
* Add option to add timestamps to debug outputSimo Sorce2009-07-201-3/+12
| | | | | use '--debug-timestamps' at the command line or set 'debug-timestamps = TRUE' in the configuration file.
* add a short explanation about the used debug levelsSumit Bose2009-07-101-0/+14
|
* PRINT and ERROR macrosJakub Hrozek2009-07-021-0/+3
|
* Turn sssd_mem_takeover into sssd_mem_attachSimo Sorce2009-06-101-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
* add utility function talloc_zfreeSimo Sorce2009-06-021-0/+4
|
* Suppress "rootdse" error messages.Stephen Gallagher2009-05-281-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.
* Enhance server_setupSimo Sorce2009-03-201-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.
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-261-2/+8
| | | | | | dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
* Adding support for CheckPermissions to InfoPipe.Stephen Gallagher2009-02-241-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.
* Make a binary out of each major sssd component instead ofSimo Sorce2008-11-251-3/+20
| | | | using the same binary to fork off all services.
* Replacing hard-coded paths with configure script substitutions.Stephen Gallagher2008-11-241-2/+0
| | | | Changing the default SBUS locations to be configure script parameters
* Start conversion from a fork() and live to a fork()/exec() model.Simo Sorce2008-11-201-2/+4
| | | | | To start the dameon now you need to pass the option -s monitor Still have some problems communicating with children.
* Rename function, do not use other libraries namespaceSimo Sorce2008-11-041-2/+4
|
* Initial memory cleanup workStephen Gallagher2008-11-031-0/+4
|
* Use classic errno instead of inventing our own, it's broad enough fro atm.Simo Sorce2008-10-091-5/+1
|
* We need replace.h here or __location__ cannot be foundSimo Sorce2008-10-071-0/+1
|
* Add primitive debugging capabilities.Simo Sorce2008-10-071-1/+10
| | | | | So far debug goes to stderr so sssd need to be run int interactive mode (-i option)
* Add initial nss responder skeletonSimo Sorce2008-10-041-0/+1
|
* Initital server code.Simo Sorce2008-10-041-0/+38
Includes test monitor task.