summaryrefslogtreecommitdiffstats
path: root/server/util
Commit message (Collapse)AuthorAgeFilesLines
* Add initial failover support for ldap and ipaSimo Sorce2009-11-202-0/+89
| | | | | | | 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.
* Improve handling of ccache filesSumit Bose2009-11-202-0/+333
| | | | | | | - save current ccache file to sysdb - use the saved ccache file if the user has running processes - create an empty ccache if offline - return enviroment variables if offline
* Validate Kerberos credentials with local keytabSumit Bose2009-11-202-2/+16
|
* 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
|
* Add simple reference counting wrappers for tallocMartin Nagy2009-11-062-0/+127
|
* Add DLIST_FOR_EACH() macroMartin Nagy2009-11-061-0/+3
|
* Build files.c only for toolsStephen Gallagher2009-11-052-745/+0
| | | | Move files.c into tools directory
* add replacements for missing Kerberos callsSumit Bose2009-11-052-0/+137
|
* Simplify debug_fn()Stephen Gallagher2009-11-041-12/+2
| | | | | | We don't need to be allocating an output string here. This was also causing a runtime bug when the output string contained characters that would be interpreted by fprintf as specifiers.
* Free the PCRE regexp with destructorJakub Hrozek2009-11-041-0/+10
|
* User home directories managementJakub Hrozek2009-10-222-0/+745
| | | | | | 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-223-33/+9
| | | | Also include talloc.h, tevent.h and ldb.h as system headers in util.h.
* Use correct talloc context in sss_names_init()Martin Nagy2009-10-221-2/+2
|
* enable debugging of krb5_childSumit Bose2009-10-152-4/+38
|
* add a replacement if ldap_control_create is missingSumit Bose2009-10-132-0/+100
|
* Remove unused btreemap codeStephen Gallagher2009-10-062-257/+0
| | | | | We have converted to using dhash in place of btreemap everywhere in the code.
* add utility call check_and_open_readonlySumit Bose2009-10-052-0/+93
| | | | | Use this new utility call to ensure that the config file is safe to read from.
* Send debug messages to logfileJakub Hrozek2009-09-253-2/+66
| | | | | | | | | | | | | 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-252-8/+8
| | | | | This converts a great many configuration options to the new standard format.
* Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher2009-09-233-34/+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-213-17/+34
| | | | | 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-114-0/+81
| | | | Fixes: #138
* 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.
* Add strtoint32 and strtouint32 convenience functionsStephen Gallagher2009-09-102-0/+97
|
* more fixes for older libpcre versionssbose2009-09-091-2/+4
| | | | | - older version of libpcre only support the Python syntax (?P<name>) for named subpatterns
* Split database in multiple filesSimo Sorce2009-09-082-0/+125
| | | | | The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
* check if libpcre version is above or below 7Sumit Bose2009-09-011-1/+13
| | | | | PCRE_DUPNAMES is a new feature of libpcre 7. It is used in sssd to make the splitting of fully qualified user names more flexible.
* add configure check for errno_tSumit Bose2009-08-281-0/+5
|
* Make child processes exit when parent diesJakub Hrozek2009-08-113-1/+46
| | | | | | | | 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-052-0/+134
|
* Consolidate tevent helpersJakub Hrozek2009-08-051-0/+25
|
* Add option to add timestamps to debug outputSimo Sorce2009-07-203-4/+32
| | | | | use '--debug-timestamps' at the command line or set 'debug-timestamps = TRUE' in the configuration file.
* Instrument memberof for debuggingSimo Sorce2009-07-201-1/+3
| | | | Fix ldb debug to avoid printing the debug function name, it's useless.
* add a short explanation about the used debug levelsSumit Bose2009-07-101-0/+14
|
* PRINT and ERROR macrosJakub Hrozek2009-07-021-0/+3
|
* Allow the use of custom CFLAGS on the make command lineStephen Gallagher2009-06-191-0/+1
| | | | | | | | | | | Setting CFLAGS explicitly in configure.ac means that they would be overwritten when using e.g. make CFLAGS="-O0 -g" This replaces the explicit setting of CFLAGS with an AM_CONDITIONAL to have Makefile.am set these instead. Also fixes a missing #include that was coincidentally obscured because gcc's -O2 happened to be able to locate it. Setting -O0 revealed the problem.
* Create gettext framework for SSSD daemonStephen Gallagher2009-06-172-0/+14
|
* Add missing configure check for getpgrpStephen Gallagher2009-06-111-1/+1
|
* Turn sssd_mem_takeover into sssd_mem_attachSimo Sorce2009-06-102-25/+51
| | | | | | | 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
* Fix invalid pointer error in ldb_debug_messagesStephen Gallagher2009-06-081-2/+19
|
* add utility function talloc_zfreeSimo Sorce2009-06-021-0/+4
|
* Suppress "rootdse" error messages.Stephen Gallagher2009-05-282-0/+29
| | | | | | | 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.
* Use PTR_2_INT for alignment calculationsSimo Sorce2009-05-281-4/+5
| | | | | This version should be pointer size agnostic. Should make this code safe on both 32bit and 64bit.
* Silence warningsSimo Sorce2009-05-261-0/+2
|
* Fix crypt functions to not use static buffers.Simo Sorce2009-05-182-320/+318
| | | | Also fix style, clarify, and simplify some logic.
* Chdir to / when daemonizingJakub Hrozek2009-05-081-0/+11
|