summaryrefslogtreecommitdiffstats
path: root/src/tests/sysdb-tests.c
Commit message (Collapse)AuthorAgeFilesLines
* DB: Add sss_ldb_el_to_string_listJakub Hrozek2014-01-291-0/+49
|
* Add sysdb_attrs_add_lc_name_aliasSumit Bose2013-12-191-0/+29
|
* SYSDB: Sanitize filter before removing ghost attrsLukas Slebodnik2013-11-291-0/+19
| | | | | | | | | | | sysdb_add_user fails with EIO if enumeration is disabled and user contains backslashes. We try to remove ghost attributes from groups with disabled enumeration, but unsanitized filter is used to find ghost attributes "(|(ghost=usr\\\\002)" and ldb cannot parse this filter. Resolves: https://fedorahosted.org/sssd/ticket/2163
* SYSDB: Sanitize filter before sysdb_search_groupsLukas Slebodnik2013-11-291-0/+5
| | | | | | | | | | sysdb_delete_user fails with EIO if user does not exist and contains backslashes. ldb could not parse filter (&(objectclass=group)(ghost=usr\\\\001)), because ghost value was not sanitized Resolves: https://fedorahosted.org/sssd/ticket/2163
* SYSDB: Add sysdb_delete_by_sidJakub Hrozek2013-10-251-0/+12
|
* IPA: store forest name for forest member domainsSumit Bose2013-09-271-8/+8
| | | | | In order to fix https://fedorahosted.org/sssd/ticket/2093 the name of the forest must be known for a member domain of the forest.
* sysdb: sysdb_update_members can take either name or dnPavel Březina2013-09-261-3/+3
| | | | | | | | | We need to work with distinguish names when processing cross-domain membership, because groups and users may be stored in different sysdb tree. Resolves: https://fedorahosted.org/sssd/ticket/2066
* DB: Add user/group lookup by SIDOndrej Kos2013-09-101-19/+32
|
* Read enumerate state for subdomains from cacheJakub Hrozek2013-08-281-3/+3
| | | | | The enumerate flag will be read from the cache for subdomains and the domain object will be created accordingly.
* SYSDB: Store enumerate flag for subdomainJakub Hrozek2013-08-281-5/+7
|
* sysdb_add_incomplete_group: store SID string is availableSumit Bose2013-08-191-4/+45
| | | | | | During initgroups request we read the SID of a group from the server but do not save it to the cache. This patch fixes this and might help to avoid an additional lookup of the SID later.
* DB: sysdb_search_user_by_name: search by both name and aliasJakub Hrozek2013-07-091-4/+19
|
* Read mpg state for subdomains from cacheSumit Bose2013-06-281-3/+6
| | | | | The mpg flag will be read from the cache for subdomains and the domain object will be created accordingly.
* Save mpg state for subdomainsSumit Bose2013-06-281-5/+8
| | | | | | The information of a subdomain will use magic private groups (mpg) or not will be stored together with other information about the domain in the cache.
* Remove empty directories after tests run.Lukas Slebodnik2013-05-301-15/+2
| | | | | Empty directory tests_path is removed in function test_dom_suite_cleanup. Function test_dom_suite_cleanup is reused in other tests.
* Only try to relink ghost users if we're not enumeratingJakub Hrozek2013-04-291-4/+8
| | | | | | | | https://fedorahosted.org/sssd/ticket/1893 When SSSD is not enumerating (which is the default), we are trying to link any "ghost" entries with a newly created user entry. However, when enumeration is on, this means a spurious search on adding any user.
* Fixing duplicate constLukas Slebodnik2013-03-211-3/+3
| | | | const char const * --> const char *const
* tests: Print warning if LDB_MODULES_PATH is not setMichal Zidek2013-03-201-0/+5
| | | | | | | Print warning if sysdb-tests or sysdb-ssh test are run individually and LDB_MODULES_PATH was not set. https://fedorahosted.org/sssd/ticket/1820
* Use SSSD specific errors for offline authSimo Sorce2013-03-041-4/+8
| | | | | | This prevents reportin false errors when internal functions return a generic EINVAL or EACCES that should just be treated as internal errors.
* Change the way domains are linked.Simo Sorce2013-02-101-60/+27
| | | | | | | | | | | | | | | | | | | - Use a double-linked list for domains and subdomains. - Never remove a subdomain, simply mark it as disabled if it becomes unused. - Rework the way subdomains are refreshed. Now sysdb_update_subdomains() actually updates the current subdomains and marks as disabled the ones not found in the sysdb or add new ones found. It never removes them. Removal of missing domains from sysdb is deferred to the providers, which will perform it at refresh time, for the ipa provider that is done by ipa_subdomains_write_mappings() now. sysdb_update_subdomains() is then used to update the memory hierarchy of the subdomains. - Removes sysdb_get_subdomains() - Removes copy_subdomain() - Add sysdb_subdomain_delete()
* Remove sysdb_subdom completelySimo Sorce2013-02-101-45/+67
| | | | | struct sss_domain_info is always used to represent domains now. Adjust tests accordingly.
* Avoid sysdb_subdom in sysdb_get_subdomains()Simo Sorce2013-02-101-11/+11
|
* Add realm info to sss_domain_infoSimo Sorce2013-02-101-3/+3
|
* TESTS: include error message on failOndrej Kos2013-01-291-8/+8
|
* TESTS: Fix coverity issues 13126, 13127Ondrej Kos2013-01-291-2/+6
| | | | https://fedorahosted.org/sssd/ticket/1763
* tests: unit test for sysdb_remove_attrsJakub Hrozek2013-01-151-0/+45
|
* tests: add unit test for sysdb_get_new_idJakub Hrozek2013-01-151-1/+20
|
* tests: test sysdb_initgroupsJakub Hrozek2013-01-151-0/+48
|
* tests: adda a unit test for test_sysdb_search_groupsJakub Hrozek2013-01-151-0/+29
|
* tests: unit test for test_sysdb_search_usersJakub Hrozek2013-01-151-0/+31
|
* tests: add a unit test for sysdb_netgroup_base_dnJakub Hrozek2013-01-151-0/+23
|
* Add domain arguments to sysdb services functionsSimo Sorce2013-01-151-15/+9
| | | | also fix sysdb_svc_add declarations
* Add domain argument to sysdb autofs functionsSimo Sorce2013-01-151-8/+13
|
* Add domain argument to sysdb_remove_attrs()Simo Sorce2013-01-151-4/+4
|
* Add domain argument to sysdb_has/set_enumerated()Simo Sorce2013-01-151-5/+3
|
* Add domain arg to sysdb_search/delete_netgroup()Simo Sorce2013-01-151-1/+2
|
* Add domain argument to sysdb_delete_group()Simo Sorce2013-01-151-5/+8
| | | | Also remove sysdb_delete_domgroup()
* Add domain argument to sysdb_delete_user()Simo Sorce2013-01-151-5/+8
| | | | Also remove sysdb_delete_domuser()
* Add domain to sysdb_delete_customSimo Sorce2013-01-151-1/+1
|
* Add domain argument to sysdb_search_custom()Simo Sorce2013-01-151-1/+3
| | | | Also changes sysdb_search_custom_by_name()
* Add domain argument to sysdb_store_custom()Simo Sorce2013-01-151-1/+1
|
* Add domain argument to sysdb_cache_auth()Simo Sorce2013-01-151-4/+8
|
* Add domain argument to sysdb_cache_password()Simo Sorce2013-01-151-1/+1
|
* Add domain arg to sysdb group member functionsSimo Sorce2013-01-151-6/+10
|
* Add domain argument to sysdb_store_group()Simo Sorce2013-01-151-9/+12
| | | | Also remove sysdb_store_domgroup()
* Add domain argument to sysdb_store_user()Simo Sorce2013-01-151-9/+14
| | | | Also remove sysdb_store_domuser()
* Add domain arguments to sysdb_add_inetgroup fns.Simo Sorce2013-01-151-2/+2
|
* Add domain arguments to sysdb_add_group functions.Simo Sorce2013-01-151-7/+9
|
* Add domain argument to sysdb_add_user()Simo Sorce2013-01-151-2/+2
|
* Add domain argument to sysdb_add_basic_user()Simo Sorce2013-01-151-0/+1
|