summaryrefslogtreecommitdiff
path: root/src/tests
AgeCommit message (Collapse)AuthorFilesLines
2010-04-06Protect against check-and-open race conditionsStephen Gallagher1-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.
2010-03-25Add a test for domain_to_basedn()Sumit Bose1-0/+47
2010-03-25Regression test against RHBZ #576856Jakub Hrozek1-0/+2
2010-03-12Fix build when check-devel is not installedStephen Gallagher2-82/+109
tests/common.c is now required by all tests (check-based and not), so we need to properly ifdef it
2010-03-11Add expandable sequences to krb5_ccachedirSumit Bose1-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.
2010-03-08Add simple access providerSumit Bose1-0/+173
2010-03-08Do not run negative resolv test with no networkJakub Hrozek1-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.
2010-03-04Add forgotten \n in DEBUG statementsMartin Nagy2-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.
2010-03-04Add --with-test-dir option to configureStephen Gallagher15-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
2010-02-23Check and set permissions on SBUS socketsSumit Bose2-9/+10
2010-02-22Restrict family lookupsJakub Hrozek2-7/+21
Adds a new option that tells resolver which address family to prefer or use exclusively. Fixes: #404
2010-02-19Remove unneeded items from struct pam_dataSumit Bose1-2/+2
2010-02-18Fix licensing issues in SSSDStephen Gallagher1-0/+24
2010-02-18Rename server/ directory to src/Stephen Gallagher16-0/+7777
Also update BUILD.txt