summaryrefslogtreecommitdiffstats
path: root/server/tests/sysdb-tests.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename server/ directory to src/Stephen Gallagher2010-02-181-3330/+0
| | | | Also update BUILD.txt
* Send a message to the user if the login is delayedSumit Bose2010-02-101-2/+10
|
* Warn the user if authentication happens offlineSumit Bose2010-02-021-6/+97
|
* Check cache_credentials in sysdb_cache_auth_send()Sumit Bose2010-02-021-0/+9
|
* Add sysdb request to authenticate against a cached passwordSumit Bose2010-01-201-0/+135
| | | | | | | | | The code for authentication against a cached password is moved from the pam responder to a generic sysdb tevent request. The new code can be used by other components of sssd to verify passwords on their own. Tests for the sysdb_cache_password and sysdb_cache_auth request are added and some unneeded or unused code and variables are removed.
* Cleanup db files after test runSumit Bose2009-12-151-2/+19
|
* Add checks to test the memberuid handlingSumit Bose2009-12-071-13/+495
|
* Fix nested group membershipsSimo Sorce2009-12-071-1/+1
| | | | | | | | | Search the local db to find the local DN using the original DN as search key. This way we do not have to rely on weak and faulty heuristicts based on DN names. Add a few helper functions in the process and change the way we pass members to sysdb_store_group_send(), instead of passing users and groups list, just add member DNs to the other sysdb attrs.
* Add sysdb_search_custom requestSumit Bose2009-12-071-62/+110
|
* Only display errors in unit testsStephen Gallagher2009-11-201-1/+2
| | | | | If you want to turn verbosity back on, just set the environment variable CK_VERBOSITY=verbose
* Make the sysdb user and group names case-sensitiveStephen Gallagher2009-11-181-0/+39
|
* Refactor delete functions and add a fewSimo Sorce2009-11-101-19/+22
| | | | | | Refactor user/group delete functions so that they can be used without a transaction (they autostart an operation). Add user and group search function where a subfilter can be specified.
* Always set last update and expire timeSimo Sorce2009-11-061-2/+2
| | | | | modifications to existing users/groups were setting metadata, but creation was not. Fixes #259
* Add sysdb_attrs_replace_name to sysdb API.Sumit Bose2009-11-041-0/+45
|
* add sysdb_delete_recursive request to sysdb APISumit Bose2009-11-021-4/+107
|
* remove old sysdb file before starting testsSumit Bose2009-10-301-0/+8
|
* Allow sysdb_search_entry request to return more than one resultSumit Bose2009-10-291-0/+112
|
* added a ASQ search API for sysdbSumit Bose2009-10-291-0/+126
|
* Move responsibility for entry expiration timeoutSimo Sorce2009-10-271-2/+2
| | | | | The providers are now responsible for determining how long a cached entry is considered valid. The default is the same as before (600s)
* add store/search/delete interface for custom sysdb objectsSumit Bose2009-10-221-0/+367
|
* update sysdb tests to new config file versionSumit Bose2009-10-011-12/+3
|
* Complete the removal of "legacy" option.Simo Sorce2009-09-111-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.
* Remove unused event context argument from confdb_initStephen Gallagher2009-09-101-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.
* Split database in multiple filesSimo Sorce2009-09-081-80/+47
| | | | | The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
* Remove redunant function and always pass attrs.Simo Sorce2009-08-271-2/+3
|
* Fix sysdb testsJakub Hrozek2009-08-211-17/+62
|
* Add ignore_not_found parameter to sysdb delete functionsJakub Hrozek2009-07-311-4/+152
| | | | Also add tests
* Cleanup warnings in client and server codeSimo Sorce2009-07-031-1/+1
|
* Rework transaction code to use tevent_reqSimo Sorce2009-07-031-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.
* Rename sysdb_req to sysdb_handle.Simo Sorce2009-07-031-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.
* Enable enumeration in sysdb testsStephen Gallagher2009-05-281-0/+8
|
* Adjust sysdb tests to the new confdb interface and improve sysdb test coverageJakub Hrozek2009-05-261-39/+771
|
* Remove _PW_ and _GR_ from SYSDB_ definesSimo Sorce2009-03-051-7/+7
| | | | Also unify SYSDB_PW_NAME and SYSDB_GR_NAME in SYSDB_NAME and make it "name"
* Add functions to add regular users and groupsSimo Sorce2009-03-051-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.
* 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.
* 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