summaryrefslogtreecommitdiffstats
path: root/server/tests
Commit message (Collapse)AuthorAgeFilesLines
* Implement GetUserAttributes in the InfoPipeStephen Gallagher2009-03-021-2/+4
| | | | | | | | | | | | | | | | | | 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.
* Adapt test to changes to the interface.Simo Sorce2009-02-281-169/+326
| | | | | Only legacy functions are fully tested now. TODO: add new tests for non-legacy backend operations.
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-261-2/+2
| | | | | | 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/+320
| | | | | | | | | 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.
* Attach the InfoPipe to the D-BUS system bus. InfoPipe is now capable of ↵Stephen Gallagher2009-02-231-9/+9
| | | | | | | | | | | 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.
* Always pass teh database path explicitly, so that test cases can useSimo Sorce2009-02-131-2/+12
| | | | | throw away databases Check version and init main db if empty
* - make all functions supposed to get input in posix formatSimo Sorce2009-02-121-88/+11
| | | | | | | | 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-121-16/+113
| | | | | | | | | | | 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-121-27/+97
| | | | | | | | | | 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-121-17/+155
| | | | | | 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-121-21/+279
|
* Adding sysdb_store_group_posix with unit testStephen Gallagher2009-02-121-0/+165