summaryrefslogtreecommitdiffstats
path: root/server/util
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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.
* Clean up warnings in SSSDStephen Gallagher2009-04-071-12/+12
|
* Enhance server_setupSimo Sorce2009-03-202-0/+11
| | | | | | | 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.
* Do not steal memory in btreemaps.Simo Sorce2009-03-021-4/+7
| | | | | Just make sure that the memory passed in is either static or allocated on the same memory context that is parent of the btreemap.
* Implement GetUserAttributes in the InfoPipeStephen Gallagher2009-03-021-1/+3
| | | | | | | | | | | | | | | | | | This patch adds support for requesting user data in the sysdb via the InfoPipe. It currently has support for reading defined entries of integral, floating-point or string types. Tasks remaining: 1) Implement call to the provider when cache is out of date 2) Support byte arrays for userpic and similar I modified sysdb_search_ctx in sysdb_search.c to accept an array of attributes to pass into the LDB search. I also made one additional related fix: the btreemap now sorts in the correct order. Previously I had accidentally transposed the two values for sorting, so the map would always have been in exact reverse order.
* first version of LOCAL pam backendSumit Bose2009-03-022-0/+422
|
* Fix confdb issues.Simo Sorce2009-02-281-9/+4
| | | | | | | | | | | Avoid uninitialized memory messages in valgrind (in _btreemap_get_keys). Do not free memory we just stored in the btree (in confdb_get_domains_list). Streamline confdb_get_domains() and remove extra calls when we already have all the information handy. Do not store basedn in domain info, the base dn is always calculated out of the domain name. Remove the "provider" attribute, it was really used only to distinguish between LOCAL and other domains, directly check for LOCAL as a special case instead.
* Refactor creation of domain_map into confdbStephen Gallagher2009-02-272-9/+39
| | | | | | | | | | | | | | | | | The NSS provider, the Data Provider backends and the InfoPipe all need access to the domain map provided by the confdb. Instead of reimplimenting it in multiple places, it is now provided in a pair of helper functions from the confdb. confdb_get_domains() returns a domain map by reference. Always returns the most up-to-date set of domains from the confdb. confdb_get_domains_list() returns an array of strings of all the domain names. Always returns the most up-to-date set of domains from the confdb. This patch also modifies the btreemap_get_keys() function to better handle memory and report allocation failures.
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-265-16/+18
| | | | | | 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-242-0/+38
| | | | | | | | | 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.
* Enhancements and bugfixes to util/btreemap.c 1) Remove useless and unused ↵Stephen Gallagher2009-02-162-22/+34
| | | | btreemap_new() 2) Fix potentially serious memory allocation error. btreemap now requires a TALLOC_CTX to be passed in for assignment to the top node of the tree. Previously it was creating a new root TALLOC_CTX 3) Add new function btreemap_get_keys that will return a sorted array (newly allocated using talloc_realloc()) of keys (const void *) 4) Change the btreemap to use (const void *) keys instead of (void *)
* 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
|
* Adding sysdb_store_group_posix with unit testStephen Gallagher2009-02-121-1/+1
|
* Refactoring the monitor code and SBUS utility functions.Stephen Gallagher2009-01-272-130/+0
|
* Minor change to btreemap to use an enum for the return codes of ↵Stephen Gallagher2009-01-092-17/+24
| | | | btreemap_search_key.
* 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-222-3/+4
| | | | events.h -> tevent.h
* Adding a parameter to the sbus_service_sbus_init function to allow passing ↵Stephen Gallagher2008-12-152-3/+5
| | | | in an sbus_conn_destructor_fn to the sbus_new_connection() function. Fixing minor warning about the usage of talloc_reference.
* 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-083-21/+8
| | | | and frontends (pam, nss, ... modules) can connect to.
* Make a binary out of each major sssd component instead ofSimo Sorce2008-11-252-115/+48
| | | | using the same binary to fork off all services.
* Move all server helpers in util/server.cSimo Sorce2008-11-252-161/+400
|
* point PIPE_PATH at /var/lib/sss/pipes, not just the private path so that theSimo Sorce2008-11-241-1/+2
| | | | same config option can be used for the nss service
* Replacing hard-coded paths with configure script substitutions.Stephen Gallagher2008-11-242-3/+5
| | | | Changing the default SBUS locations to be configure script parameters
* Fix indentationSimo Sorce2008-11-242-5/+5
|
* Created a helper function sssd_service_sbus_init() to simplify creating the ↵Stephen Gallagher2008-11-202-0/+138
| | | | initial connection to the monitor service within the child services. It will create the D-BUS connection to the monitor and configure the service to handle the mandatory getIdentity and ping methods.
* Start conversion from a fork() and live to a fork()/exec() model.Simo Sorce2008-11-203-3/+69
| | | | | To start the dameon now you need to pass the option -s monitor Still have some problems communicating with children.
* btreemap.c and btreemap.h seem to be missing from an earlier commit. Adding ↵Stephen Gallagher2008-11-192-0/+207
| | | | them.
* Rename function, do not use other libraries namespaceSimo Sorce2008-11-042-9/+16
|
* Moved method handling into sssd_dbus_connection.c. Added support for ↵Stephen Gallagher2008-11-031-1/+1
| | | | 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-4/+4
|
* Initial memory cleanup workStephen Gallagher2008-11-032-0/+30
|
* Use classic errno instead of inventing our own, it's broad enough fro atm.Simo Sorce2008-10-091-5/+1
|
* Fix build issues surrounding signal blocking and DEBUG macrosStephen Gallagher2008-10-072-0/+2
|
* We need replace.h here or __location__ cannot be foundSimo Sorce2008-10-071-0/+1
|