summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Spec file patch Take 2:Stephen Gallagher2009-02-246-18/+46
| | | | | | | | | | | | | | | Adding support for generating RPMS for sssd. Fixing TDB autoconf macros to require version 1.1.3 and support for the tdb_repack symbol (required by LDB) Updating tdb.h to #include <sys/stat.h> for proper autoconf Build system modifications to simplify RPM generation Fixing RPM build system as recommended during code review Minor tweaks to Makefile and sssd.spec Make policykit and infopipe configurable Soname and symlinks
* Adding support for generating RPMS for sssd.Stephen Gallagher2009-02-241-14/+43
| | | | | | | | | | | | | Fixing TDB autoconf macros to require version 1.1.3 and support for the tdb_repack symbol (required by LDB) Updating tdb.h to #include <sys/stat.h> for proper autoconf Build system modifications to simplify RPM generation Fixing RPM build system as recommended during code review Minor tweaks to Makefile and sssd.spec Make policykit and infopipe configurable Soname and symlinks
* Add D-BUS introspection to InfoPipe This function is necessary to play nice ↵Stephen Gallagher2009-02-245-5/+90
| | | | with D-BUS clients built in multiple languages. It will read in the XML file on the first request and store the returned XML as a component of the sbus_message_handler_ctx for the connection. All subsequent requests during the process' lifetime will be returned from the stored memory. This is perfectly safe, as the available methods cannot change during the process lifetime.
* Fixing serious memory allocation bug in sbus_message_handler.Stephen Gallagher2009-02-2312-169/+156
| | | | | | | | | | | | dbus_message_append_args() adds a reference to memory that is not copied to the outgoing message until dbus_connection_send() is called. Since we compile our reply messages in functions and then return the reply, we need a mechanism for deleting allocated memory after invoking dbus_connection_send. I have changed the arguments to sbus_msg_handler_fn so that it takes a talloc ctx containing the sbus_message_handler_ctx and a pointer to a reply object. We can now allocate memory as a child of the reply context and free it after calling dbus_connection_send.
* Attach the InfoPipe to the D-BUS system bus. InfoPipe is now capable of ↵Stephen Gallagher2009-02-2313-51/+675
| | | | | | | | | | | listening for requests to org.freeipa.sssd.infopipe I made the sbus_add_connection function public so that I could use it for system bus connections. Adding initial framework for the InfoPipe Updating sysdb tests for the refactored sysdb methods.
* Change examples accordingly to changes in the codeSimo Sorce2009-02-202-7/+10
|
* Reorganize sysdb a bit,Simo Sorce2009-02-206-980/+1096
| | | | | | | rename _posix_ function into _legacy_ Add support for the posix legacy mode where memberships are stored in memberUId and not in member/memberof pairs. Do not build sysdb as a library
* Add helper function to get booleans from confdbSimo Sorce2009-02-202-9/+46
|
* Completely rework the nss interface to be able to use 2Simo Sorce2009-02-209-440/+1588
| | | | | | | | | | | | | | | | | | | | | | | | | types of domains: modern and legacy modern uses member/meberof, legacy uses memberUid for group memberships. Rework the proxy backend to use the legacy style as that's the format the data comes in (trying to convert would require too many transformations and increased the number of queries). Add support for fetching groups in nss. Add support for enumerating users and groups (requires to enable enumeration in config) both in nss and in the proxy provider. Remove confdb_get_domain_basedn() and substitute with generic calls in the nss init function. Store a domain structure in the btree not the basedn so that we can add enumeration flags. Also make sure NSS understand how to make multiple calls on enumerations, also make passing the domian parameter always mandatory, passing in domain=* is not valid anymore. This work fixes also a few memory, degfault, and logic bugs found while testing all nss functions (there are still some to fix that are less critical and much harder to find yet).
* Fix segfault bugs, and incorrect detection of ENOMEM when fillingSimo Sorce2009-02-202-17/+18
| | | | up users.
* Fix another transaction mis-handlingSimo Sorce2009-02-171-22/+20
|
* Modifying sbus_message_handler to return DBUS_ERROR_UNKNOWN_METHOD when the ↵Stephen Gallagher2009-02-161-2/+10
| | | | requested method is not registered with the message handler. Previously, we returned DBUS_HANDLER_RESULT_HANDLED with no indication that nothing had happened.
* Enhancements and bugfixes to util/btreemap.c 1) Remove useless and unused ↵Stephen Gallagher2009-02-163-26/+38
| | | | 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 *)
* ldb_msg_* functions do not reliably set errno on error, do not realy on that.Simo Sorce2009-02-161-34/+34
| | | | | | | | | | | | This was causing some functions to not cancel a transaction as they should have, leaving it pending indefintely. It in turn meant that no other process could see what was "stored" in the db as transactions are not fluched to the db until "committed". Took me quite a while and a lot of confusion to catch why I was seeing "ghost entries" in some processes and not seeing the entry in others .. As a defensive programming measure make sure we commit OR cancel in the same spot and that we always go thorugh it.
* Make backend requests asyncSimo Sorce2009-02-134-72/+599
|
* Object not found on delete is not really an error.Simo Sorce2009-02-131-10/+10
|
* If we find the service we are doneSimo Sorce2009-02-131-1/+2
|
* Add a separte global checker that does not depend on individualSimo Sorce2009-02-131-28/+91
| | | | services ping time.
* Always pass teh database path explicitly, so that test cases can useSimo Sorce2009-02-1310-47/+223
| | | | | throw away databases Check version and init main db if empty
* Fix add member, remove one to many lines in the previous tidyupSimo Sorce2009-02-131-0/+6
|
* Remove dp_cli_sbus_initSimo Sorce2009-02-123-128/+5
|
* Add syntaxes for member and memberofSimo Sorce2009-02-121-0/+8
|
* Fix copy&paste errorSimo Sorce2009-02-121-1/+1
|
* Add indexes and attribute types for common attributesSimo Sorce2009-02-121-0/+18
|
* - make all functions supposed to get input in posix formatSimo Sorce2009-02-124-315/+240
| | | | | | | | use the same namespace (sysdb_posix_) - no need to explicitly start a transaction if only one operation is performed using a synchronous interface - split _add_remove_ functions into separate functions, don't let ldap madness creep into out interfaces
* Added sysdb_remove_group_posix and sysdb_remove_group_posix_by_gidStephen Gallagher2009-02-123-19/+253
| | | | | | | | | | | Fixed a few small bugs in sysdb_[store|remove]_account_posix. The string "uid=" needed to be replaced with SYSDB_PW_NAME, and the search scope in sysdb_remove_account_posix_by_uid needed to be LDB_SCOPE_ONELEVEL, not LDB_SCOPE_BASE. Added associated unit tests. Modified the unit test structure so that it is called as a single suite, rather than a User and Group suite, since there is too much overlap.
* Add support for removing members from groups. Updated convenience functions ↵Stephen Gallagher2009-02-123-68/+184
| | | | | | | | | | for adding/removing user accounts and POSIX groups to the groups. Also modified the add/remove member functions to be a single interface taking a flag for add or removal, since the code only differs by one LDB flag. Added associated unit tests.
* Add sysdb_add_group_to_posix_group, refactored sysdb_add_acct_to_posix_group ↵Stephen Gallagher2009-02-123-92/+236
| | | | | | to now use sysdb_add_member_to_posix_group along with sysdb_add_member_to_posix_group. Added new unit tests to sysdb-tests.c for groups of groups.
* Adding sysdb_add_acct_to_posix_group and associated unit testsStephen Gallagher2009-02-123-27/+462
|
* Adding sysdb_store_group_posix with unit testStephen Gallagher2009-02-128-18/+374
|
* server.mk was included twice by mistakeSimo Sorce2009-01-281-2/+0
|
* Simplify delete path by removing effectively redundant code.Simo Sorce2009-01-281-221/+41
| | | | Thanks Nathan for the review that lead to this!
* Add comments on how memberof works.Simo Sorce2009-01-282-1/+97
| | | | Enable memberof by default in the default db example
* Add a memberof plugin so that we can properly apply the same group membershipsSimo Sorce2009-01-288-9/+2329
| | | | | | as in IPA if necessary. This patch slightly modifies ldb to split out a modules header file without exposing the private headers.
* Move install directiuves into Makefile.inSimo Sorce2009-01-282-6/+4
|
* Preliminary support for enabling InfoPipe to listen on the D-BUS system bus. ↵Stephen Gallagher2009-01-279-4/+183
| | | | It will connect and authenticate successfully (using the included D-BUS policy file installed in the correct /etc directory. Does not yet listen for requests.
* Add skeleton for PolicyKit back-endStephen Gallagher2009-01-275-1/+242
|
* Add skeleton for InfoPipe serviceStephen Gallagher2009-01-276-4/+243
|
* Automatically generate the config.ldb if it doesn't exist (i.e. First startup)Stephen Gallagher2009-01-274-10/+91
|
* Fix configure when libs are not in standard pathsSimo Sorce2009-01-271-0/+1
|
* Fixes to the makefile to get make install to work properlyStephen Gallagher2009-01-272-3/+11
|
* Refactoring the monitor code and SBUS utility functions.Stephen Gallagher2009-01-2719-174/+547
|
* Add code to make it easier to reconnect in case the serverSimo Sorce2009-01-147-33/+134
| | | | | is not available immediately or drops the dbus connection. First step is the nss connection to the data provider.
* Now that we have the domain name passed in, dispatch to the rightSimo Sorce2009-01-131-3/+9
| | | | domain when possible.
* Fix return, dbus would abort because we were passing values andSimo Sorce2009-01-132-3/+7
| | | | | not pointers to values. Check domain is never null (or dbus will abort).
* Ignore some more common stuffSimo Sorce2009-01-131-0/+9
|
* Monitor will now start services asynchronously. This means that forked ↵Stephen Gallagher2009-01-131-21/+57
| | | | services can no longer start before the monitor is running its mainloop. This avoids the race condition where the child services attempted to connect to the monitor SBUS before it was able to answer requests.
* Add checks to make sure we are getting a user from the correct domain.Simo Sorce2009-01-123-1/+72
|
* Add placeholders for new configuration reload methods. The monitor will be ↵Stephen Gallagher2009-01-123-0/+25
| | | | able to call the reloadConfig DBUS method on any or all of its children to force them to reread their configuration from the confdb.
* Regroup database rleated functions under db andSimo Sorce2009-01-1216-1429/+1344
| | | | rename everything with the sysdb suffix.