summaryrefslogtreecommitdiff
path: root/server/tests
AgeCommit message (Collapse)AuthorFilesLines
2009-09-21Provide python bindings for sysdbJakub Hrozek1-0/+391
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
2009-09-14add krb5ccache_dir and krb5ccname_template optionSumit Bose1-0/+292
The configuration options krb5ccache_dir and krb5ccname_template are added to the Kerberos provider to create the user's credential caches the same way as pam_krb5 does. Due to the design of the sssd and the supported ccache types of MIT Kerberos only files are allowed.
2009-09-11Complete the removal of "legacy" option.Simo Sorce1-3/+3
The code was still dependent on it for the ldap driver. Changed the driver code to depend on the schema type. Fix defaults for user and groups trees. ATM if you use the rfc2307bis schema you have to put users and groups in 2 separate trees (what people does by default anyway. If this limitation will turn to be too hard, we will change this later.
2009-09-11Add strtoint32 and strtouint32 testsStephen Gallagher1-0/+454
2009-09-10Remove unused event context argument from confdb_initStephen Gallagher1-1/+1
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.
2009-09-08Split database in multiple filesSimo Sorce1-80/+47
The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
2009-08-27Remove redunant function and always pass attrs.Simo Sorce1-2/+3
2009-08-21Fix sysdb testsJakub Hrozek1-17/+62
2009-08-05Consolidate tevent helpersJakub Hrozek1-9/+0
2009-07-31Add ignore_not_found parameter to sysdb delete functionsJakub Hrozek1-4/+152
Also add tests
2009-07-24Add async resolver testsJakub Hrozek1-0/+442
Add some basic unit tests of the async resolver module. One of the tests resolves a name on the Internet, therefore it is off by default and is turned on with the -n switch.
2009-07-20Remove unused InfoPipe and PolicyKit codeStephen Gallagher2-1020/+0
2009-07-03Cleanup warnings in client and server codeSimo Sorce1-1/+1
2009-07-03Rework transaction code to use tevent_reqSimo Sorce1-572/+464
This is part of a set of patches to rewrite sysdb to a hopefully better API, that will also let use use tevent_req async style calls to manipulate our cache.
2009-07-03Rename sysdb_req to sysdb_handle.Simo Sorce1-51/+51
This sysdb_req has always really been a transaction handle and not a request. This is part of a set of patches to rewrite transaction support in sysdb to a hopefully better API, that will also let use use tevent_req async style to manipulate our cache.
2009-06-10Fix warnings in stress-tests.cSimo Sorce1-19/+21
2009-05-28Enable enumeration in sysdb testsStephen Gallagher1-0/+8
2009-05-26Adjust sysdb tests to the new confdb interface and improve sysdb test coverageJakub Hrozek1-39/+771
2009-05-26Add some more InfoPipe testsJakub Hrozek1-0/+615
2009-04-27Stress testJakub Hrozek1-0/+326
2009-03-19Remove references to FreeIPA from D-BUS interfacesStephen Gallagher1-1/+1
Per discussion with the desktop team, using the org.freedesktop interface name will simplify adoption, as potential users won't feel like they're pulling in a FreeIPA dependency.
2009-03-09Do not duplicate attribute names macros.Simo Sorce1-1/+1
Also shorten names oh other user attributes.
2009-03-05Remove _PW_ and _GR_ from SYSDB_ definesSimo Sorce1-7/+7
Also unify SYSDB_PW_NAME and SYSDB_GR_NAME in SYSDB_NAME and make it "name"
2009-03-05Add functions to add regular users and groupsSimo Sorce1-12/+146
Calulates next id automatically if uid/gid are not specified. Fixes to sysdb_get_next_available_id. Add tests to create users and groups through the new functions.
2009-03-04Implement SetUserAttributes in the InfoPipeStephen Gallagher1-0/+83
SetUserAttributes is now available for use in the Infopipe. I also reorganized a few of the internal InfoPipe objects to reduce code duplication. One very simple test is included in this checkin to validate that the parser is working.
2009-03-02Implement GetUserAttributes in the InfoPipeStephen Gallagher1-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.
2009-02-28Adapt test to changes to the interface.Simo Sorce1-169/+326
Only legacy functions are fully tested now. TODO: add new tests for non-legacy backend operations.
2009-02-26Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce1-2/+2
dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
2009-02-24Adding support for CheckPermissions to InfoPipe.Stephen Gallagher1-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.
2009-02-23Attach the InfoPipe to the D-BUS system bus. InfoPipe is now capable of ↵Stephen Gallagher1-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.
2009-02-13Always pass teh database path explicitly, so that test cases can useSimo Sorce1-2/+12
throw away databases Check version and init main db if empty
2009-02-12- make all functions supposed to get input in posix formatSimo Sorce1-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
2009-02-12Added sysdb_remove_group_posix and sysdb_remove_group_posix_by_gidStephen Gallagher1-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.
2009-02-12Add support for removing members from groups. Updated convenience functions ↵Stephen Gallagher1-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.
2009-02-12Add sysdb_add_group_to_posix_group, refactored sysdb_add_acct_to_posix_group ↵Stephen Gallagher1-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.
2009-02-12Adding sysdb_add_acct_to_posix_group and associated unit testsStephen Gallagher1-21/+279
2009-02-12Adding sysdb_store_group_posix with unit testStephen Gallagher1-0/+165