summaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Modify sysdb_add_group_member_send to accept users and groupsStephen Gallagher2010-10-081-2/+7
| | | | | Previously, it assumed that all members were users. This changes the interface so that either a user or a group can be specified.
* sysdb interface for adding incomplete group entriesJakub Hrozek2010-10-081-0/+72
| | | | Useful for optimizing the initgroups operation.
* Add sysdb_update_members functionStephen Gallagher2010-07-301-0/+168
| | | | | | | | This function will take a user, a list of groups that this user should be added to and a list of groups the user should be removed from and will recursively call sysdb_[add|remove]_group_member Includes a unit test
* Add diff_string_lists utility functionStephen Gallagher2010-07-301-0/+227
| | | | Includes a unit test
* Add sysdb_attrs_to_list() utility functionStephen Gallagher2010-07-301-0/+31
|
* Standardize on correct spelling of "principal" for krb5Stephen Gallagher2010-06-161-4/+4
| | | | https://fedorahosted.org/sssd/ticket/542
* Print correct return codeJakub Hrozek2010-06-141-1/+1
| | | | Fixes: #535
* Add support for delayed kinit if offlineSumit Bose2010-05-071-2/+2
| | | | | | | If the configuration option krb5_store_password_if_offline is set to true and the backend is offline the plain text user password is stored and used to request a TGT if the backend becomes online. If available the Linux kernel key retention service is used.
* Sort SRV replies according to RFC 2782Jakub Hrozek2010-04-301-0/+88
| | | | | | | | | | RFC 2782 defines a way to sort replies to a SRV query. In short, the algorithm sorts all replies by priority and then does a weight-based selection for every priority level. For details, please see the sections "Usage rules" for overview of the algorithm and section "The 'Weight' field" for description on the weight selection.
* Protect against check-and-open race conditionsStephen Gallagher2010-04-061-2/+2
| | | | | | | | | | | | | | | | | There is a small window between running lstat() on a filename and opening it where it's possible for the file to have been modified. We were protecting against this by saving the stat data from the original file and verifying that it was the same file (by device and inode) when we opened it again, but this is an imperfect solution, as it is still possible for an attacker to modify the permissions during this window. It is much better to simply open the file and test on the active file descriptor. Resolves https://fedorahosted.org/sssd/ticket/425 incidentally, as without the initial lstat, we are implicitly accepting symlinks and only verifying the target file.
* Add a test for domain_to_basedn()Sumit Bose2010-03-251-0/+47
|
* Regression test against RHBZ #576856Jakub Hrozek2010-03-251-0/+2
|
* Fix build when check-devel is not installedStephen Gallagher2010-03-122-82/+109
| | | | | tests/common.c is now required by all tests (check-based and not), so we need to properly ifdef it
* Add expandable sequences to krb5_ccachedirSumit Bose2010-03-111-92/+470
| | | | | | | As with krb5_ccname_template sequences like %u can be used in the krb5_ccachedir parameter which are expanded at runtime. If the directory does not exist, it will be created. Depending on the used sequences it is created as a public or private directory.
* Add simple access providerSumit Bose2010-03-081-0/+173
|
* Do not run negative resolv test with no networkJakub Hrozek2010-03-081-3/+73
| | | | | | One of our resolv tests tries to resolve a nonexistent hostname. Do not run this test unless we are explicitly told that a network connection is available (-n). Also do not automatically resolving localhost.
* Add forgotten \n in DEBUG statementsMartin Nagy2010-03-042-3/+3
| | | | | | Logs from confdb with missing '\n' in the DEBUG statements annoyed me so I decided to fix them. I also made a quick grep through the code and found other places so I fixed them too.
* Add --with-test-dir option to configureStephen Gallagher2010-03-0415-1/+58
| | | | | | All 'make check' tests will chdir() into this directory before running the suite. This provides the option of having temporary files generated in a tmpfs or ramdisk
* Check and set permissions on SBUS socketsSumit Bose2010-02-232-9/+10
|
* Restrict family lookupsJakub Hrozek2010-02-222-7/+21
| | | | | | | Adds a new option that tells resolver which address family to prefer or use exclusively. Fixes: #404
* Remove unneeded items from struct pam_dataSumit Bose2010-02-191-2/+2
|
* Fix licensing issues in SSSDStephen Gallagher2010-02-181-0/+24
|
* Rename server/ directory to src/Stephen Gallagher2010-02-1816-0/+7777
Also update BUILD.txt